How can i terminate a CWinThread derived thread externally?
Thanks in Advance!
Franky
http://innocreations.cjb.net
Printable View
How can i terminate a CWinThread derived thread externally?
Thanks in Advance!
Franky
http://innocreations.cjb.net
When you crate the thread,you must save the thread's pointer,if you want to
terminate thread use this pointer.
CWinThread *pThread=AfxBeginThread(...);
....
::TerminateThread(pThread->m_hThread,extcode);