i am trying to write a thread which calls a function..
the problem is that i get an error message from the following line of code...
hThread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE )MessageThread,0,0,&ThreadId);
the error message is
'type cast' : cannot convert from '' to 'unsigned long (__stdcall *)(void *)'
where MessageThread is the function call. i have tired every type of casting, no luck!!!
leaving out the type cast gives this warning
unsigned int (void *)' to 'unsigned long (__stdcall *)(void *)
the application is an MFC and the thread is being called inside a class..
should i really being using CWndThread or am i missing something...
any advise is appreciated >*<