Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Multithread Pin
benjnp20-Oct-05 14:50
benjnp20-Oct-05 14:50 
GeneralRe: Multithread Pin
Blake V. Miller20-Oct-05 17:43
Blake V. Miller20-Oct-05 17:43 
GeneralRe: Multithread Pin
benjnp20-Oct-05 18:20
benjnp20-Oct-05 18:20 
GeneralRe: Multithread Pin
Blake V. Miller24-Nov-05 9:12
Blake V. Miller24-Nov-05 9:12 
GeneralRe: Multithread Pin
David Crow21-Oct-05 2:56
David Crow21-Oct-05 2:56 
AnswerRe: Multithread Pin
PJ Arends20-Oct-05 10:07
professionalPJ Arends20-Oct-05 10:07 
GeneralRe: Multithread Pin
benjnp20-Oct-05 14:48
benjnp20-Oct-05 14:48 
GeneralRe: Multithread Pin
PJ Arends20-Oct-05 15:25
professionalPJ Arends20-Oct-05 15:25 
No. First off you are using GetExitCodeThread wrong, look it up in MSDN. Second, as David said above, constantly polling the thread is not a good thing to do.

Stops the caller thread until the new thread finishes:
CWinThread *myThread = AfxBeginThread(...

WaitForSingleObject(myThread->m_hThread, INFINITE);




"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04

"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05

Within you lies the power for good - Use it!
Questionreduce size of CFileDialog Pin
FarPointer20-Oct-05 7:41
FarPointer20-Oct-05 7:41 
AnswerRe: reduce size of CFileDialog Pin
Mircea Puiu20-Oct-05 8:13
Mircea Puiu20-Oct-05 8:13 
AnswerRe: reduce size of CFileDialog Pin
RaajaOfSelf20-Oct-05 9:53
RaajaOfSelf20-Oct-05 9:53 
GeneralRe: reduce size of CFileDialog Pin
bugDanny21-Oct-05 2:56
bugDanny21-Oct-05 2:56 
GeneralRe: reduce size of CFileDialog Pin
RaajaOfSelf21-Oct-05 7:52
RaajaOfSelf21-Oct-05 7:52 
GeneralRe: reduce size of CFileDialog Pin
bugDanny21-Oct-05 8:08
bugDanny21-Oct-05 8:08 
GeneralRe: reduce size of CFileDialog Pin
RaajaOfSelf21-Oct-05 10:18
RaajaOfSelf21-Oct-05 10:18 
GeneralRe: reduce size of CFileDialog Pin
bugDanny21-Oct-05 11:18
bugDanny21-Oct-05 11:18 
GeneralRe: reduce size of CFileDialog Pin
FarPointer22-Oct-05 1:30
FarPointer22-Oct-05 1:30 
GeneralRe: reduce size of CFileDialog Pin
bugDanny24-Oct-05 8:32
bugDanny24-Oct-05 8:32 
GeneralRe: reduce size of CFileDialog Pin
RaajaOfSelf23-Oct-05 16:57
RaajaOfSelf23-Oct-05 16:57 
QuestionNew class Pin
bugDanny20-Oct-05 5:28
bugDanny20-Oct-05 5:28 
AnswerRe: New class Pin
David Crow20-Oct-05 5:44
David Crow20-Oct-05 5:44 
GeneralRe: New class Pin
bugDanny20-Oct-05 6:02
bugDanny20-Oct-05 6:02 
GeneralRe: New class Pin
S. Senthil Kumar20-Oct-05 6:03
S. Senthil Kumar20-Oct-05 6:03 
GeneralRe: New class Pin
bugDanny20-Oct-05 6:08
bugDanny20-Oct-05 6:08 
GeneralRe: New class Pin
S. Senthil Kumar21-Oct-05 1:48
S. Senthil Kumar21-Oct-05 1:48 

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.