Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is it possible to suspend a thread when the thread has executed Sleep() statement and in sleep mode Pin
David Crow27-Sep-11 15:57
David Crow27-Sep-11 15:57 
Question[MFC] Keep thread alive until application exits Pin
Erik26-Sep-11 23:39
Erik26-Sep-11 23:39 
AnswerRe: [MFC] Keep thread alive until application exits Pin
Erudite_Eric26-Sep-11 23:43
Erudite_Eric26-Sep-11 23:43 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 4:46
professionalAlbert Holguin27-Sep-11 4:46 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Rajesh R Subramanian27-Sep-11 7:26
professionalRajesh R Subramanian27-Sep-11 7:26 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 7:30
professionalAlbert Holguin27-Sep-11 7:30 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 7:35
professionalAlbert Holguin27-Sep-11 7:35 
AnswerRe: [MFC] Keep thread alive until application exits Pin
Chuck O'Toole27-Sep-11 4:11
Chuck O'Toole27-Sep-11 4:11 
Before creating the thread, create an "Event" object, closed, not auto-reset. When the thread is ready to exit, use WaitForSingleObject() to wait for the event to be triggered. When the dialog closes, have use SetEvent() to tell the thread that it is ok for it to exit now.
GeneralRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 7:51
professionalAlbert Holguin27-Sep-11 7:51 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Chuck O'Toole27-Sep-11 8:38
Chuck O'Toole27-Sep-11 8:38 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 9:24
professionalAlbert Holguin27-Sep-11 9:24 
AnswerRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 4:55
professionalAlbert Holguin27-Sep-11 4:55 
AnswerRe: [MFC] Keep thread alive until application exits Pin
Roger Allen27-Sep-11 6:10
Roger Allen27-Sep-11 6:10 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Chris Meech27-Sep-11 6:29
Chris Meech27-Sep-11 6:29 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Rajesh R Subramanian27-Sep-11 7:31
professionalRajesh R Subramanian27-Sep-11 7:31 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 7:32
professionalAlbert Holguin27-Sep-11 7:32 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Rajesh R Subramanian27-Sep-11 7:39
professionalRajesh R Subramanian27-Sep-11 7:39 
GeneralRe: [MFC] Keep thread alive until application exits Pin
Albert Holguin27-Sep-11 7:42
professionalAlbert Holguin27-Sep-11 7:42 
AnswerRe: [MFC] Keep thread alive until application exits Pin
Rajesh R Subramanian27-Sep-11 7:30
professionalRajesh R Subramanian27-Sep-11 7:30 
AnswerRe: [MFC] Keep thread alive until application exits Pin
David Crow27-Sep-11 16:00
David Crow27-Sep-11 16:00 
QuestionIs there any library which can detect the faulty statement at runtime? Pin
rahul.kulshreshtha26-Sep-11 22:05
rahul.kulshreshtha26-Sep-11 22:05 
AnswerRe: Is there any library which can detect the faulty statement at runtime? Pin
Madhu Nair26-Sep-11 23:17
Madhu Nair26-Sep-11 23:17 
QuestionRe: Is there any library which can detect the faulty statement at runtime? Pin
rahul.kulshreshtha27-Sep-11 1:25
rahul.kulshreshtha27-Sep-11 1:25 
AnswerRe: Is there any library which can detect the faulty statement at runtime? Pin
Rolf Kristensen27-Sep-11 8:20
Rolf Kristensen27-Sep-11 8:20 
QuestionErranous behavouir in Modless Dialog Pin
Amrit Agr26-Sep-11 21:30
Amrit Agr26-Sep-11 21:30 

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.