Click here to Skip to main content
15,867,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to quit an application immediately without executing the next line of code Pin
manoharbalu26-May-11 20:02
manoharbalu26-May-11 20:02 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
_AnsHUMAN_ 26-May-11 20:13
_AnsHUMAN_ 26-May-11 20:13 
GeneralRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin27-May-11 4:27
professionalAlbert Holguin27-May-11 4:27 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
ThatsAlok26-May-11 21:35
ThatsAlok26-May-11 21:35 
GeneralRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin27-May-11 4:28
professionalAlbert Holguin27-May-11 4:28 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
Richard MacCutchan26-May-11 22:10
mveRichard MacCutchan26-May-11 22:10 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
Chris Losinger27-May-11 4:21
professionalChris Losinger27-May-11 4:21 
AnswerRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin27-May-11 4:27
professionalAlbert Holguin27-May-11 4:27 
If you need to quit the application, use Richard's advice, if you need to quit a thread, use TerminateThread (a couple of people suggested) but be aware that doing that creates memory leaks as the threads working memory is not properly deallocated... so you shouldn't do the operation very often and only when its absolutely necessary, in most cases, you can creatively code a solution that allows a thread to properly shutdown... for example if the thread is processing some data, then you can have a control variable that'll stop the processing (within the thread) until WM_QUIT message is processed.
GeneralRe: How to quit an application immediately without executing the next line of code Pin
ThatsAlok29-May-11 19:02
ThatsAlok29-May-11 19:02 
GeneralRe: How to quit an application immediately without executing the next line of code Pin
Albert Holguin30-May-11 12:16
professionalAlbert Holguin30-May-11 12:16 
QuestionHow to use CreateRemoteThread in Win7/Vista ? Pin
wangningyu26-May-11 14:58
wangningyu26-May-11 14:58 
AnswerRe: How to use CreateRemoteThread in Win7/Vista ? Pin
fat_boy26-May-11 23:40
fat_boy26-May-11 23:40 
GeneralRe: How to use CreateRemoteThread in Win7/Vista ? Pin
wangningyu27-May-11 14:28
wangningyu27-May-11 14:28 
Question[win32]Draw on a background bitmap Pin
Member 296547126-May-11 3:03
Member 296547126-May-11 3:03 
AnswerRe: [win32]Draw on a background bitmap Pin
Richard MacCutchan26-May-11 3:37
mveRichard MacCutchan26-May-11 3:37 
GeneralRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 8:08
Member 296547126-May-11 8:08 
QuestionRe: [win32]Draw on a background bitmap Pin
David Crow26-May-11 9:09
David Crow26-May-11 9:09 
AnswerRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 10:36
Member 296547126-May-11 10:36 
GeneralRe: [win32]Draw on a background bitmap Pin
David Crow26-May-11 10:59
David Crow26-May-11 10:59 
GeneralRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 11:44
Member 296547126-May-11 11:44 
GeneralRe: [win32]Draw on a background bitmap Pin
David Crow26-May-11 17:05
David Crow26-May-11 17:05 
QuestionRe: [win32]Draw on a background bitmap Pin
Mark Salsbery26-May-11 10:57
Mark Salsbery26-May-11 10:57 
AnswerRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 11:45
Member 296547126-May-11 11:45 
GeneralRe: [win32]Draw on a background bitmap Pin
Mark Salsbery26-May-11 11:45
Mark Salsbery26-May-11 11:45 
GeneralRe: [win32]Draw on a background bitmap Pin
Member 296547126-May-11 11:47
Member 296547126-May-11 11:47 

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.