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

C / C++ / MFC

 
AnswerRe: LIBPNG DLL with VS 2005 Pin
Christian Graus16-Jan-07 13:18
protectorChristian Graus16-Jan-07 13:18 
GeneralRe: LIBPNG DLL with VS 2005 Pin
Bartosz Bien16-Jan-07 13:42
Bartosz Bien16-Jan-07 13:42 
Questionpointer to active document Pin
RalfPeter16-Jan-07 11:18
RalfPeter16-Jan-07 11:18 
AnswerRe: pointer to active document Pin
Stephen Hewitt16-Jan-07 11:55
Stephen Hewitt16-Jan-07 11:55 
GeneralRe: pointer to active document Pin
RalfPeter16-Jan-07 12:26
RalfPeter16-Jan-07 12:26 
AnswerRe: pointer to active document Pin
Stephen Hewitt16-Jan-07 12:28
Stephen Hewitt16-Jan-07 12:28 
AnswerRe: pointer to active document [modified] Pin
Mark Salsbery16-Jan-07 13:05
Mark Salsbery16-Jan-07 13:05 
Question_itoa vs _itoa_s [modified] Pin
bs197716-Jan-07 11:08
bs197716-Jan-07 11:08 
AnswerRe: _itoa vs _itoa_s Pin
toxcct16-Jan-07 11:17
toxcct16-Jan-07 11:17 
AnswerRe: _itoa vs _itoa_s Pin
James R. Twine16-Jan-07 11:51
James R. Twine16-Jan-07 11:51 
QuestionCapturing Messages Application Pin
Revant Jain16-Jan-07 10:31
Revant Jain16-Jan-07 10:31 
AnswerRe: Capturing Messages Application Pin
David Crow16-Jan-07 10:40
David Crow16-Jan-07 10:40 
QuestionProblem with GetFocus() Pin
Jader8916-Jan-07 10:17
Jader8916-Jan-07 10:17 
AnswerRe: Problem with GetFocus() Pin
Mark Salsbery16-Jan-07 10:34
Mark Salsbery16-Jan-07 10:34 
GeneralRe: Problem with GetFocus() Pin
Jader8916-Jan-07 10:59
Jader8916-Jan-07 10:59 
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 

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.