I'm trying to start a thread in a class I've written using AfxBeginThread
What I want the thread to do is (almost) constantly monitor the status of another executable after I've started it. The problem is, I can't figure out how to make AfxBeginThread work.
Here's the essence of my call:
this->monitorThread = AfxBeginThread(ThreadFunc,NULL,
UINT MyClass::ThreadFunc(LPVOID p)
I keep getting:
error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'UINT (LPVOID)'
Any suggestions? Thanks!