Click here to Skip to main content
15,896,359 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionlaunch 2 exes with one..... Pin
homerjaylol16-Jan-07 7:31
homerjaylol16-Jan-07 7:31 
QuestionRe: launch 2 exes with one..... Pin
David Crow16-Jan-07 7:34
David Crow16-Jan-07 7:34 
AnswerRe: launch 2 exes with one..... Pin
toxcct16-Jan-07 8:03
toxcct16-Jan-07 8:03 
GeneralRe: launch 2 exes with one..... Pin
David Crow16-Jan-07 8:06
David Crow16-Jan-07 8:06 
GeneralRe: launch 2 exes with one..... Pin
toxcct16-Jan-07 8:10
toxcct16-Jan-07 8:10 
AnswerRe: launch 2 exes with one..... Pin
James R. Twine16-Jan-07 8:03
James R. Twine16-Jan-07 8:03 
GeneralRe: launch 2 exes with one..... Pin
#realJSOP16-Jan-07 8:36
professional#realJSOP16-Jan-07 8:36 
GeneralRe: launch 2 exes with one..... Pin
James R. Twine16-Jan-07 8:45
James R. Twine16-Jan-07 8:45 
   Closing the handles as shown will not cause the applications to shut down, so I am not sure that this was your intent, it simply releases the calling/parent app's "reference" to them, same as how closing a thread handle does not cause that thread to die immediately.

   I do not believe that your suggestion will allow the calling app to ensure that the child apps have closed - they can ignore the WM_CLOSE message, or otherwise return from handling it and still be running.

   Actually waiting for the handles to become signaled tells you when the apps have shut down (or, after a certain timeout, that they have not).

--- Edit: OK - you may have been specifically talking about how to cause the other two applications to initiate shutdown, as opposed to my suggestion of using an Event.  Yes, that works as well, and is a bit simplier, but it should be mentioned that this only works for applications/processes that have a window and are pumping messages.  And you still have to get the window handles for those child processes.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

QuestionThunks Pin
Waldermort16-Jan-07 7:16
Waldermort16-Jan-07 7:16 
AnswerRe: Thunks Pin
James R. Twine16-Jan-07 7:28
James R. Twine16-Jan-07 7:28 
QuestionCan I raise Exception in one thread and handle it in another? Pin
chilituna16-Jan-07 6:51
chilituna16-Jan-07 6:51 
AnswerRe: Can I raise Exception in one thread and handle it in another? Pin
James R. Twine16-Jan-07 7:03
James R. Twine16-Jan-07 7:03 
QuestionRe: Can I raise Exception in one thread and handle it in another? Pin
David Crow16-Jan-07 7:33
David Crow16-Jan-07 7:33 
AnswerRe: Can I raise Exception in one thread and handle it in another? Pin
Michael Dunn16-Jan-07 8:28
sitebuilderMichael Dunn16-Jan-07 8:28 
QuestionIOCP+weird latency problem Pin
Polity4h16-Jan-07 6:32
Polity4h16-Jan-07 6:32 
AnswerRe: IOCP+weird latency problem [modified] Pin
Mark Salsbery16-Jan-07 7:13
Mark Salsbery16-Jan-07 7:13 
QuestionCode Snippets availability for C++ in VS2005. Pin
oleg6316-Jan-07 5:45
professionaloleg6316-Jan-07 5:45 
AnswerRe: Code Snippets availability for C++ in VS2005. Pin
Christian Graus16-Jan-07 8:38
protectorChristian Graus16-Jan-07 8:38 
GeneralRe: Code Snippets availability for C++ in VS2005. Pin
James R. Twine16-Jan-07 9:05
James R. Twine16-Jan-07 9:05 
GeneralRe: Code Snippets availability for C++ in VS2005. Pin
S Douglas16-Jan-07 23:01
professionalS Douglas16-Jan-07 23:01 
AnswerRe: Code Snippets availability for C++ in VS2005. Pin
S Douglas16-Jan-07 23:00
professionalS Douglas16-Jan-07 23:00 
QuestionVideo Overlay in MFC Pin
BoroDave16-Jan-07 4:30
BoroDave16-Jan-07 4:30 
AnswerRe: Video Overlay in MFC Pin
Mark Salsbery16-Jan-07 7:28
Mark Salsbery16-Jan-07 7:28 
QuestionSelect static control when overlapped Pin
Vishvanathan16-Jan-07 3:18
Vishvanathan16-Jan-07 3:18 
AnswerRe: Select static control when overlapped Pin
Rage16-Jan-07 5:44
professionalRage16-Jan-07 5: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.