I haven't done much with C, and what I have done hasn't tied into any window handles or processes. I'd like to build a socket based remote control plugin for winamp. For starters though, I'd like to just be able to compile, and get the winamp handle through FindWindow (and I don't even know where FindWindow belongs, I'm assuming it's from the windows.h header).
Here's the code I'm trying to compile
Code:
#include <stdafx.h>
#include <windows.h>
#include <process.h>
#include <wa_ipc.h>
int main()
{
HWND hwnd_winamp;
hwnd_winamp = FindWindow("Winamp",NULL);
return 0;
}
And the error
Quote:
1>------ Build started: Project: war, Configuration: Debug Win32 ------
1>Compiling...
1>war.cpp
1>Linking...
1>war.obj : error LNK2019: unresolved external symbol __imp__FindWindowA@8 referenced in function _main
1>C:\Documents and Settings\Josh\My Documents\Visual Studio 2005\Projects\war\Debug\war.exe : fatal error LNK1120: 1 unresolved externals
|