I have an application that during startup, needs to kick off a function as a thread. This function needs to execute and once complete, die.
I currently have the following :
UINT CMyApp::pThreadDoIt(LPVOID pParam)
// Do stuff;
In the main startup function, I have the following line:
AfxBeginThread( pThreadDoIt );
When I compile, I get the error :
'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'