I do not know if you are building for 16 bit Windows 3.1x or 32 bit Windows.
Assuming that you are building for 32 bit Windows you can start the other
executable with a call to CreateProcess. One of the arguments in the call
is the address of a structure you provide, a PROCESS_INFORMATION structure.
The variables in that structure are part of the return values from
You can then call WaitForSingleObject using the process handle. That will
allow you to detect when the executable has finished.
The specifics of the Windows API functions CreateProcess and
WaitForSingleObject can be found in the Windows API help supplied with the
compiler, win32.hlp. They also can be found online in the MS Development