Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: THread TErmination PRoblem!! Pin
_AnsHUMAN_ 19-Sep-06 1:17
_AnsHUMAN_ 19-Sep-06 1:17 
IMO, you can take a global flag variable. In your thread function check for the flag value to be true(The flag value is set to true when you want the thread to end), so gracefully return from the thread function. Using AfxEndThread() , TerminateThread is not suggested. You must always try and return from the thread function whenever you want to end it...

If you are starting a thread in some function and want to instantiate the thread only once then you can use another flag variable. Set it true and check for the validity.
I hope that I understood you correctly...Hmmm | :|

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

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 
QuestionRe: How to convert char* to char Pin
prasad_som19-Sep-06 1:05
prasad_som19-Sep-06 1:05 

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.