compiler doesn't like CreateThread
ok, last one for the night, i swear....
essentially, all i'm trying to do is create a win32 thread with the CreateThread function
(for those not familiar w/ it)
Code:
HANDLE CreateThread (
LPSECURITY_ATTRIBUTES lpThreadAttributes,
SIZE_T dwStackSize,
LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter,
DWORD dwCreationFlags,
LPDWORD lpThreadId )
for whatever reason, the compiler is telling me that my function call does not match the definition of this function. i actually even tried copying someone's example code straight from a tutorial, and it's still giving me the same error message. anyway, here's my code:
Code:
DWORD genericThread;
HANDLE updateThread;
char lszThreadParam[3];
strcpy(lszThreadParam,"3");
updateThread = CreateThread(NULL,0,CheckUpdates,&lszThreadParam,0,&genericThread);
.... any ideas??