Click here to Skip to main content
15,887,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to rerun a process when it was terminated? Pin
iceman86169-Sep-09 22:53
iceman86169-Sep-09 22:53 
AnswerRe: how to rerun a process when it was terminated? Pin
Adam Roderick J9-Sep-09 22:59
Adam Roderick J9-Sep-09 22:59 
AnswerRe: how to rerun a process when it was terminated? Pin
Selvam R9-Sep-09 23:05
professionalSelvam R9-Sep-09 23:05 
AnswerRe: how to rerun a process when it was terminated? Pin
CPallini9-Sep-09 23:16
mveCPallini9-Sep-09 23:16 
General[OT] Re: how to rerun a process when it was terminated? Pin
David Crow10-Sep-09 3:43
David Crow10-Sep-09 3:43 
GeneralRe: [OT] Re: how to rerun a process when it was terminated? Pin
CPallini10-Sep-09 7:57
mveCPallini10-Sep-09 7:57 
GeneralRe: how to rerun a process when it was terminated? Pin
iceman861610-Sep-09 14:20
iceman861610-Sep-09 14:20 
GeneralRe: how to rerun a process when it was terminated? Pin
CPallini10-Sep-09 21:26
mveCPallini10-Sep-09 21:26 
Finding a process by name is a rather lenghty operation (you must go through EnumWindows [^]). Perhaps a better option would be storing the process handle (if application A starts application B via CreateProcess [^] then A may store the B process handle) and call GetExitCodeProcess [^] when needed.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: how to rerun a process when it was terminated? Pin
Michael Schubert9-Sep-09 23:19
Michael Schubert9-Sep-09 23:19 
GeneralRe: how to rerun a process when it was terminated? Pin
iceman861610-Sep-09 14:16
iceman861610-Sep-09 14:16 
QuestionMake new folder as zip? Pin
Arrin9-Sep-09 21:27
Arrin9-Sep-09 21:27 
AnswerRe: Make new folder as zip? Pin
Nuri Ismail9-Sep-09 21:45
Nuri Ismail9-Sep-09 21:45 
GeneralRe: Make new folder as zip? Pin
Arrin9-Sep-09 23:53
Arrin9-Sep-09 23:53 
GeneralRe: Make new folder as zip? Pin
kilt10-Sep-09 6:26
kilt10-Sep-09 6:26 
QuestionSequence of calling of InitInstance and InitDialog in MFC Pin
Alex@9C9-Sep-09 20:24
Alex@9C9-Sep-09 20:24 
AnswerRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
Iain Clarke, Warrior Programmer9-Sep-09 20:59
Iain Clarke, Warrior Programmer9-Sep-09 20:59 
GeneralRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
CPallini9-Sep-09 21:02
mveCPallini9-Sep-09 21:02 
GeneralRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
Alex@9C9-Sep-09 22:03
Alex@9C9-Sep-09 22:03 
GeneralRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
Alex@9C9-Sep-09 22:06
Alex@9C9-Sep-09 22:06 
GeneralRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
Michael Schubert9-Sep-09 22:12
Michael Schubert9-Sep-09 22:12 
GeneralRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
Michael Schubert9-Sep-09 22:05
Michael Schubert9-Sep-09 22:05 
AnswerRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
CPallini9-Sep-09 21:01
mveCPallini9-Sep-09 21:01 
GeneralRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
Iain Clarke, Warrior Programmer9-Sep-09 21:24
Iain Clarke, Warrior Programmer9-Sep-09 21:24 
GeneralRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
CPallini9-Sep-09 21:33
mveCPallini9-Sep-09 21:33 
JokeRe: Sequence of calling of InitInstance and InitDialog in MFC Pin
Iain Clarke, Warrior Programmer9-Sep-09 21:56
Iain Clarke, Warrior Programmer9-Sep-09 21:56 

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.