Click to See Complete Forum and Search --> : Terminating Thread


franky
May 21st, 1999, 10:07 AM
How can i terminate a CWinThread derived thread externally?

Thanks in Advance!

Franky

http://innocreations.cjb.net

YunFeiLi
May 26th, 1999, 04:58 AM
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);