Click here to Skip to main content
15,925,399 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Pin
SilentSilent19-Sep-06 2:38
SilentSilent19-Sep-06 2:38 
GeneralRe: CString Pin
Jörgen Sigvardsson19-Sep-06 2:42
Jörgen Sigvardsson19-Sep-06 2:42 
AnswerRe: CString Pin
_AnsHUMAN_ 19-Sep-06 2:07
_AnsHUMAN_ 19-Sep-06 2:07 
AnswerRe: CString Pin
KarstenK19-Sep-06 2:27
mveKarstenK19-Sep-06 2:27 
AnswerRe: CString Pin
David Crow19-Sep-06 2:59
David Crow19-Sep-06 2:59 
AnswerRe: CString Pin
Zac Howland19-Sep-06 3:14
Zac Howland19-Sep-06 3:14 
QuestionTHread TErmination PRoblem!! Pin
WIr3D 0x9019-Sep-06 1:08
WIr3D 0x9019-Sep-06 1:08 
AnswerRe: THread TErmination PRoblem!! Pin
Christopher Duncan19-Sep-06 1:14
Christopher Duncan19-Sep-06 1:14 
Actually, you really don't want to forcibly terminate your thread. You should monitor something in your thread proc that will exit when the state is set by the parent thread.

One way of handling this is to create an event, say, m_hShutdown. At the top of your thread proc loop, do a WaitForSingleObject on m_hShutdown with a short timeout. When the event is set, exit the thread proc and your thread will terminate normally. In your parent code, simply call SetEvent(m_hShutdown) when you're ready to terminate the child thread.

Hope this helps.


AnswerRe: THread TErmination PRoblem!! Pin
_AnsHUMAN_ 19-Sep-06 1:17
_AnsHUMAN_ 19-Sep-06 1:17 
AnswerRe: THread TErmination PRoblem!! Pin
Jörgen Sigvardsson19-Sep-06 5:17
Jörgen Sigvardsson19-Sep-06 5:17 
QuestionToolbar image list color depth Pin
Christopher Duncan19-Sep-06 0:56
Christopher Duncan19-Sep-06 0:56 
AnswerRe: Toolbar image list color depth Pin
pratapM19-Sep-06 1:31
pratapM19-Sep-06 1:31 
AnswerRe: Toolbar image list color depth Pin
tanvon malik19-Sep-06 1:32
tanvon malik19-Sep-06 1:32 
AnswerRe: Toolbar image list color depth Pin
pratapM19-Sep-06 1:33
pratapM19-Sep-06 1:33 
AnswerRe: Toolbar image list color depth Pin
tanvon malik19-Sep-06 2:01
tanvon malik19-Sep-06 2:01 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 4:26
Christopher Duncan19-Sep-06 4:26 
AnswerRe: Toolbar image list color depth Pin
Jörgen Sigvardsson19-Sep-06 2:07
Jörgen Sigvardsson19-Sep-06 2:07 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 4:29
Christopher Duncan19-Sep-06 4:29 
GeneralRe: Toolbar image list color depth Pin
Jörgen Sigvardsson19-Sep-06 5:11
Jörgen Sigvardsson19-Sep-06 5:11 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 11:24
Christopher Duncan19-Sep-06 11:24 
AnswerRe: Toolbar image list color depth Pin
KarstenK19-Sep-06 2:34
mveKarstenK19-Sep-06 2:34 
AnswerThanks, everyone! Pin
Christopher Duncan19-Sep-06 11:25
Christopher Duncan19-Sep-06 11:25 
QuestionHow to convert char* to char Pin
vc++_fragrance19-Sep-06 0:28
vc++_fragrance19-Sep-06 0:28 
AnswerRe: How to convert char* to char Pin
prasad_som19-Sep-06 0:37
prasad_som19-Sep-06 0:37 
GeneralRe: How to convert char* to char Pin
vc++_fragrance19-Sep-06 0:47
vc++_fragrance19-Sep-06 0: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.