I use Createprocess to launch an external application. However, I want the "Mother-process" (the app. that I use to Launch) to execute some lines of code after the launched application is closed..
Procedure Form1.Button1Click(Sender: TObject);
// Var declaration..
// some lines of code that I want to be executed after the
// Process_To_Launch is closed down.
// For example:
ShowMessage('The Process is closed down');
The problem is that the external application is launched,
and then the following rows of code is executed directly,
Without waiting for the launched application to finish..
Is this the way to do it, or do I have to create some event-
handling for this, in short: How do I do it?
I use Delphi Developer 2.0