Hi everyone. I have a MFC application written in Visual Studio 6.0. I am using a thread calling the AfxBeginThread function:
Code:
m_pThread = AfxBeginThread(ThreadFunc,phObjectHandle,THREAD_PRIORITY_NORMAL,0,0,NULL);
What I want is to stop the thread if some button is pressed. The function called in ThreadFunc() is extracted from a dll and thus I cannot stop the thread from inside the function. Any ideas how to do this?
Thanx in advance.
Regards,
Theodore