CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    9

    Terminating Thread

    How can i terminate a CWinThread derived thread externally?

    Thanks in Advance!

    Franky

    http://innocreations.cjb.net

  2. #2
    Join Date
    May 1999
    Posts
    11

    Re: Terminating Thread

    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);








Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured