Click here to Skip to main content
15,918,516 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the caption of button controls in YESNOCANCEL Messagebox? Pin
pradeepvarghesek25-Aug-05 0:32
pradeepvarghesek25-Aug-05 0:32 
AnswerRe: Getting the caption of button controls in YESNOCANCEL Messagebox? Pin
ThatsAlok25-Aug-05 0:29
ThatsAlok25-Aug-05 0:29 
GeneralRe: Getting the caption of button controls in YESNOCANCEL Messagebox? Pin
pradeepvarghesek25-Aug-05 1:58
pradeepvarghesek25-Aug-05 1:58 
AnswerRe: Getting the caption of button controls in YESNOCANCEL Messagebox? Pin
David Crow25-Aug-05 3:23
David Crow25-Aug-05 3:23 
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 
If CreateProcess returns TRUE, then the process was started.
If the program is a windowed application, you can use WaitforInputIdle to make sure it got a window up on the screen. A well-deisgned application that is only going ot allow a single instance to run would terminate before displaying any user interface. So if WaitForInputIdle times out, your other app is slow, or stopped. If you think it stopped, you can test the process handle to see if the handle is signaled - they are signaled if application is no longer running.
You can use the process identifier returned from the CreateProcess call and compare it with the results of a call to EnumProcesses to see if the process identifier is still present.

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 
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 

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.