Click here to Skip to main content
16,020,424 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: To Shell a program Pin
toxcct28-Aug-06 2:38
toxcct28-Aug-06 2:38 
AnswerRe: To Shell a program Pin
Hamid Taebi28-Aug-06 2:50
professionalHamid Taebi28-Aug-06 2:50 
AnswerRe: To Shell a program Pin
_AnsHUMAN_ 28-Aug-06 2:55
_AnsHUMAN_ 28-Aug-06 2:55 
AnswerRe: To Shell a program Pin
User 21559728-Aug-06 3:42
User 21559728-Aug-06 3:42 
AnswerRe: To Shell a program Pin
David Crow28-Aug-06 3:52
David Crow28-Aug-06 3:52 
QuestionAn multithread question. Pin
cwyang28-Aug-06 2:19
cwyang28-Aug-06 2:19 
AnswerRe: An multithread question. Pin
_AnsHUMAN_ 28-Aug-06 2:59
_AnsHUMAN_ 28-Aug-06 2:59 
AnswerRe: An multithread question. Pin
Zac Howland28-Aug-06 4:24
Zac Howland28-Aug-06 4:24 
Method 1: use a shared boolean flag between your main thread and the Go-thread (protected by critical sections of course). When stop is pressed, change the value of the flag. In the Go-thread loop, check the value each time (again, making sure to protect it).

Method 2: Use a event handle. Set up the event before creating the thread, and pass it in as part of the thread's data. Use WaitForSingleObject at some point during each iteration and break out of the thread's loop when the event is signaled. When Stop is pressed, call SetEvent.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

GeneralRe: An multithread question. Pin
cwyang28-Aug-06 4:32
cwyang28-Aug-06 4:32 
GeneralRe: An multithread question. Pin
Zac Howland28-Aug-06 4:38
Zac Howland28-Aug-06 4:38 
QuestionOpen Office SDK [modified] Pin
Kamen28-Aug-06 1:07
Kamen28-Aug-06 1:07 
AnswerRe: Open Office SDK Pin
Dave Calkins28-Aug-06 7:59
Dave Calkins28-Aug-06 7:59 
QuestionDifferece between static library and shared DLL [modified] Pin
Anu_Bala28-Aug-06 0:10
Anu_Bala28-Aug-06 0:10 
AnswerRe: Differece between static library and shared DLL Pin
Emilio Garavaglia28-Aug-06 1:36
Emilio Garavaglia28-Aug-06 1:36 
AnswerRe: Differece between static library and shared DLL Pin
Hamid Taebi28-Aug-06 7:55
professionalHamid Taebi28-Aug-06 7:55 
QuestionSyncronization question Pin
Kiran Pinjala27-Aug-06 23:59
Kiran Pinjala27-Aug-06 23:59 
AnswerRe: Syncronization question Pin
kakan28-Aug-06 0:51
professionalkakan28-Aug-06 0:51 
QuestionHow to prevent drag and drop Pin
huynhnb27-Aug-06 23:22
huynhnb27-Aug-06 23:22 
QuestionSearching in SDK Pin
shadrach_india27-Aug-06 23:13
shadrach_india27-Aug-06 23:13 
AnswerRe: Searching in SDK Pin
Prakash Nadar27-Aug-06 23:22
Prakash Nadar27-Aug-06 23:22 
GeneralRe: Searching in SDK Pin
ThatsAlok28-Aug-06 0:50
ThatsAlok28-Aug-06 0:50 
AnswerRe: Searching in SDK Pin
toxcct27-Aug-06 23:25
toxcct27-Aug-06 23:25 
GeneralRe: Searching in SDK Pin
shadrach_india27-Aug-06 23:33
shadrach_india27-Aug-06 23:33 
GeneralRe: Searching in SDK Pin
toxcct27-Aug-06 23:39
toxcct27-Aug-06 23:39 
GeneralRe: Searching in SDK [modified] Pin
shadrach_india27-Aug-06 23:44
shadrach_india27-Aug-06 23:44 

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.