Click here to Skip to main content
15,888,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to know that application is closed. that was launched by ShellExecute() Pin
Ganesh_T5-Jun-06 18:55
Ganesh_T5-Jun-06 18:55 
GeneralRe: How to know that application is closed. that was launched by ShellExecute() Pin
zahid_ash5-Jun-06 18:58
zahid_ash5-Jun-06 18:58 
GeneralRe: How to know that application is closed. that was launched by ShellExecute() Pin
khan++5-Jun-06 19:06
khan++5-Jun-06 19:06 
AnswerRe: How to know that application is closed. that was launched by ShellExecute() Pin
khan++5-Jun-06 18:58
khan++5-Jun-06 18:58 
AnswerRe: How to know that application is closed. that was launched by ShellExecute() Pin
Laxman Auti5-Jun-06 20:04
Laxman Auti5-Jun-06 20:04 
AnswerRe: How to know that application is closed. that was launched by ShellExecute() Pin
sunit55-Jun-06 20:11
sunit55-Jun-06 20:11 
GeneralRe: How to know that application is closed. that was launched by ShellExecute() Pin
sunit55-Jun-06 20:37
sunit55-Jun-06 20:37 
AnswerRe: How to know that application is closed. that was launched by ShellExecute() Pin
Viorel.5-Jun-06 20:28
Viorel.5-Jun-06 20:28 
In order to see that a process was closed, you need its "handle". Please compare ShellExecuteEx and CreateProcess in order to see which is more suitable to obtain the handle. Then use the handle in the following mode:

if(::WaitForSingleObject(handle, 0) == WAIT_OBJECT_0)
{
   // the process is closed
}
else
{
   // the process is running, or an error
}

If you want to wait until the process is closed, then specify a timeout value in WaitForSingleObject. See this function for more details.
AnswerRe: How to know that application is closed. that was launched by ShellExecute() Pin
2249175-Jun-06 23:00
2249175-Jun-06 23:00 
Questionrunning an application using command prompt Pin
zahid_ash5-Jun-06 18:45
zahid_ash5-Jun-06 18:45 
AnswerRe: running an application using command prompt Pin
Ganesh_T5-Jun-06 18:52
Ganesh_T5-Jun-06 18:52 
GeneralRe: running an application using command prompt Pin
zahid_ash5-Jun-06 18:57
zahid_ash5-Jun-06 18:57 
GeneralRe: running an application using command prompt Pin
khan++5-Jun-06 19:00
khan++5-Jun-06 19:00 
AnswerRe: running an application using command prompt Pin
Laxman Auti5-Jun-06 20:25
Laxman Auti5-Jun-06 20:25 
Questionfetch from mysql [modified] Pin
p_5-Jun-06 18:39
p_5-Jun-06 18:39 
QuestionRS 232 communication [modified] Pin
rajeev825-Jun-06 18:34
rajeev825-Jun-06 18:34 
AnswerRe: RS 232 communication [modified] Pin
Trollslayer5-Jun-06 18:43
mentorTrollslayer5-Jun-06 18:43 
AnswerRe: RS 232 communication [modified] Pin
khan++5-Jun-06 18:44
khan++5-Jun-06 18:44 
AnswerRe: RS 232 communication Pin
ThatsAlok6-Jun-06 0:19
ThatsAlok6-Jun-06 0:19 
QuestionMouse move Event Pin
RajiRaghu5-Jun-06 18:04
RajiRaghu5-Jun-06 18:04 
AnswerRe: Mouse move Event Pin
Ryan Binns5-Jun-06 18:21
Ryan Binns5-Jun-06 18:21 
GeneralRe: Mouse move Event Pin
RajiRaghu6-Jun-06 0:30
RajiRaghu6-Jun-06 0:30 
GeneralRe: Mouse move Event Pin
Ryan Binns6-Jun-06 2:36
Ryan Binns6-Jun-06 2:36 
QuestionHow to load a component from the CLSID? Pin
Tcpip20055-Jun-06 17:55
Tcpip20055-Jun-06 17:55 
AnswerRe: How to load a component from the CLSID? Pin
Stephen Hewitt5-Jun-06 18:06
Stephen Hewitt5-Jun-06 18:06 

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.