Click here to Skip to main content
15,909,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Help needed Pin
David Crow7-May-07 3:37
David Crow7-May-07 3:37 
AnswerRe: Help needed Pin
pankaj0dm7-May-07 4:01
pankaj0dm7-May-07 4:01 
QuestionRe: Help needed Pin
David Crow7-May-07 4:11
David Crow7-May-07 4:11 
AnswerRe: Help needed Pin
James R. Twine7-May-07 3:33
James R. Twine7-May-07 3:33 
GeneralRe: Help needed Pin
pankaj0dm7-May-07 3:50
pankaj0dm7-May-07 3:50 
QuestionRe: Help needed Pin
David Crow7-May-07 3:57
David Crow7-May-07 3:57 
QuestionKill a thread Pin
deeps_cute7-May-07 3:16
deeps_cute7-May-07 3:16 
AnswerRe: Kill a thread Pin
James R. Twine7-May-07 3:19
James R. Twine7-May-07 3:19 
   I would suggest that you avoid terminating a thread.  Instead, have an event object shared between your dialog and the thread.  When the user hits Cancel, signal the event indicating to the worker thread that it should exit.  When the thread's handle becomes signaled, it has exited and you can continue (or you can wait with a timeout on the thread's handle, and terminate it if it does not exit normally within a certain amount of time).

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: Kill a thread Pin
Arman S.7-May-07 3:31
Arman S.7-May-07 3:31 
GeneralRe: Kill a thread Pin
James R. Twine7-May-07 3:34
James R. Twine7-May-07 3:34 
GeneralRe: Kill a thread Pin
Arman S.7-May-07 3:39
Arman S.7-May-07 3:39 
GeneralRe: Kill a thread Pin
James R. Twine7-May-07 4:19
James R. Twine7-May-07 4:19 
GeneralRe: Kill a thread Pin
David Crow7-May-07 3:39
David Crow7-May-07 3:39 
AnswerRe: Kill a thread Pin
Sam_c7-May-07 5:44
Sam_c7-May-07 5:44 
QuestionStatic button with bitmap Pin
prathuraj7-May-07 2:39
prathuraj7-May-07 2:39 
AnswerRe: Static button with bitmap Pin
David Crow7-May-07 3:22
David Crow7-May-07 3:22 
AnswerRe: Static button with bitmap Pin
Hans Dietrich7-May-07 3:23
mentorHans Dietrich7-May-07 3:23 
QuestionC2065 Error Pin
subramanyeswari7-May-07 2:16
subramanyeswari7-May-07 2:16 
AnswerRe: C2065 Error Pin
toxcct7-May-07 2:20
toxcct7-May-07 2:20 
GeneralRe: C2065 Error Pin
subramanyeswari7-May-07 22:14
subramanyeswari7-May-07 22:14 
GeneralRe: C2065 Error Pin
toxcct8-May-07 0:23
toxcct8-May-07 0:23 
GeneralRe: C2065 Error Pin
subramanyeswari8-May-07 3:53
subramanyeswari8-May-07 3:53 
GeneralRe: C2065 Error Pin
toxcct8-May-07 3:57
toxcct8-May-07 3:57 
GeneralRe: C2065 Error Pin
subramanyeswari8-May-07 19:08
subramanyeswari8-May-07 19:08 
GeneralRe: C2065 Error Pin
toxcct8-May-07 21:51
toxcct8-May-07 21:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.