Click here to Skip to main content
15,922,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to check if a process has really been started? Pin
ThinkingPrometheus24-Aug-05 23:44
ThinkingPrometheus24-Aug-05 23:44 
AnswerRe: how to check if a process has really been started? Pin
toxcct25-Aug-05 0:06
toxcct25-Aug-05 0:06 
GeneralRe: how to check if a process has really been started? Pin
ThinkingPrometheus25-Aug-05 0:14
ThinkingPrometheus25-Aug-05 0:14 
AnswerRe: how to check if a process has really been started? Pin
Blake Miller25-Aug-05 4:52
Blake Miller25-Aug-05 4:52 
GeneralRe: how to check if a process has really been started? Pin
ThinkingPrometheus26-Aug-05 23:01
ThinkingPrometheus26-Aug-05 23:01 
AnswerRe: how to check if a process has really been started? Pin
Cedric Moonen25-Aug-05 0:13
Cedric Moonen25-Aug-05 0:13 
GeneralRe: how to check if a process has really been started? Pin
ThinkingPrometheus25-Aug-05 0:19
ThinkingPrometheus25-Aug-05 0:19 
AnswerRe: how to check if a process has really been started? Pin
David Crow25-Aug-05 3:36
David Crow25-Aug-05 3:36 
While you can use GetExitCodeThread() for this, a well-behaved application should not be concerned with what other threads are doing. By having threads communicate back and forth, you've effectively added an unnecessary level of complication to the application. The primary thread should create the other threads, give them a job to do, and then go off and do something else while not waiting around wondering about those threads. These other threads can then communicate back to the primary thread (e.g., PostMessage()) as to what their status is.


"One must learn from the bite of the fire to leave it alone." - Native American Proverb



-- modifed at 13:45 Thursday 25th August, 2005
AnswerRe: how to check if a process has really been started? Pin
TheGreatAndPowerfulOz26-Aug-05 12:11
TheGreatAndPowerfulOz26-Aug-05 12:11 
Generalcontrolling Dialog size on runtime Pin
Pazzuzu24-Aug-05 23:10
Pazzuzu24-Aug-05 23:10 
GeneralRe: controlling Dialog size on runtime Pin
MailtoGops24-Aug-05 23:38
MailtoGops24-Aug-05 23:38 
AnswerRe: controlling Dialog size on runtime Pin
ThatsAlok24-Aug-05 23:42
ThatsAlok24-Aug-05 23:42 
GeneralRe: controlling Dialog size on runtime Pin
Pazzuzu24-Aug-05 23:49
Pazzuzu24-Aug-05 23:49 
GeneralBlocking keyboard in the Menu Pin
shijuck24-Aug-05 22:55
shijuck24-Aug-05 22:55 
GeneralRe: Blocking keyboard in the Menu Pin
David Crow25-Aug-05 3:49
David Crow25-Aug-05 3:49 
Generalsend button Pin
Member 216100424-Aug-05 21:54
Member 216100424-Aug-05 21:54 
GeneralRe: send button Pin
ThatsAlok24-Aug-05 22:20
ThatsAlok24-Aug-05 22:20 
GeneralRe: send button Pin
Member 216100425-Aug-05 14:40
Member 216100425-Aug-05 14:40 
GeneralRe: send button Pin
kakan24-Aug-05 22:36
professionalkakan24-Aug-05 22:36 
GeneralRe: send button Pin
David Crow25-Aug-05 4:08
David Crow25-Aug-05 4:08 
GeneralHardware Acceleration.......... Pin
ashwath200524-Aug-05 21:48
ashwath200524-Aug-05 21:48 
GeneralRe: Hardware Acceleration.......... Pin
David Crow25-Aug-05 4:11
David Crow25-Aug-05 4:11 
GeneralRe: Hardware Acceleration.......... Pin
ashwath200528-Aug-05 22:42
ashwath200528-Aug-05 22:42 
GeneralRe: Hardware Acceleration.......... Pin
ashwath200528-Aug-05 22:45
ashwath200528-Aug-05 22:45 
GeneralRe: Hardware Acceleration.......... Pin
ashwath200528-Aug-05 22:54
ashwath200528-Aug-05 22:54 

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.