Click here to Skip to main content
15,898,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Working Threads Pin
Hamid_RT13-Aug-06 22:08
Hamid_RT13-Aug-06 22:08 
GeneralRe: Working Threads Pin
cv_k3n15-Aug-06 2:19
cv_k3n15-Aug-06 2:19 
GeneralRe: Working Threads Pin
Hamid_RT15-Aug-06 2:56
Hamid_RT15-Aug-06 2:56 
GeneralRe: Working Threads Pin
cv_k3n15-Aug-06 3:20
cv_k3n15-Aug-06 3:20 
GeneralRe: Working Threads Pin
Hamid_RT15-Aug-06 7:57
Hamid_RT15-Aug-06 7:57 
GeneralRe: Working Threads Pin
cv_k3n15-Aug-06 21:39
cv_k3n15-Aug-06 21:39 
GeneralRe: Working Threads Pin
Hamid_RT15-Aug-06 23:54
Hamid_RT15-Aug-06 23:54 
GeneralRe: Working Threads Pin
cv_k3n16-Aug-06 2:04
cv_k3n16-Aug-06 2:04 
Thanks for your help... i've tried it but i'm not sure if its right.

Does this look right to you:

TerminateThread(myWorkerThread,GetExitCodeThread(myWorkerThread,0));

Another Question:

Assuming the code below,
MyDialog::MyThread()<br />
{<br />
int i = 0;<br />
while (i < 5000)<br />
     i++;<br />
}


I understand that a worker thread is not supposed to touch a GUI object. Is there a way to terminate this thread(when it completes, ie i = 5000) and call another function that can actually change some GUI variables?

Thank you so much for your help.
GeneralRe: Working Threads Pin
Hamid_RT16-Aug-06 4:33
Hamid_RT16-Aug-06 4:33 
Questionchecksum [modified] Pin
thathvamsi13-Aug-06 18:38
thathvamsi13-Aug-06 18:38 
AnswerRe: checksum Pin
tanvon malik13-Aug-06 18:54
tanvon malik13-Aug-06 18:54 
GeneralRe: checksum Pin
Steve Echols13-Aug-06 19:23
Steve Echols13-Aug-06 19:23 
AnswerRe: checksum Pin
Michael Dunn13-Aug-06 19:29
sitebuilderMichael Dunn13-Aug-06 19:29 
GeneralRe: checksum Pin
thathvamsi13-Aug-06 19:45
thathvamsi13-Aug-06 19:45 
GeneralRe: checksum -works now Pin
thathvamsi14-Aug-06 16:26
thathvamsi14-Aug-06 16:26 
AnswerRe: checksum Pin
Archyami13-Aug-06 20:33
Archyami13-Aug-06 20:33 
QuestionProcessShellCommand problem in release mode Pin
NorGUI13-Aug-06 18:08
NorGUI13-Aug-06 18:08 
QuestionHow to print the text in the new line of a multi line edit box . Pin
VCSharp00713-Aug-06 18:05
VCSharp00713-Aug-06 18:05 
AnswerRe: How to print the text in the new line of a multi line edit box . [modified] Pin
bob1697213-Aug-06 18:26
bob1697213-Aug-06 18:26 
GeneralRe: How to print the text in the new line of a multi line edit box . Pin
VCSharp00713-Aug-06 20:44
VCSharp00713-Aug-06 20:44 
GeneralRe: How to print the text in the new line of a multi line edit box . Pin
Hamid_RT13-Aug-06 21:37
Hamid_RT13-Aug-06 21:37 
Questionabout system32\netshell.dll Pin
diat13-Aug-06 18:03
diat13-Aug-06 18:03 
AnswerRe: about system32\netshell.dll [modified] Pin
A_Fa13-Aug-06 19:11
A_Fa13-Aug-06 19:11 
Generaldetails, please Pin
diat16-Aug-06 17:53
diat16-Aug-06 17:53 
GeneralRe: details, please Pin
A_Fa16-Aug-06 20:03
A_Fa16-Aug-06 20:03 

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.