Vassili Philippov (vasja@spbteam.com), August 08, 2001.
I need to start another executable file and wait until it will be finished. How can I do it?
Use CreateProcess function to start another program and WaitForSingleObject function to wait until the program will be finished.
You could also use RunExecutable and RunExecutableAndWait function of STUtil library that hides details.
Note: Pocket PC doesn't support local file names. All file names should contain full path like _T("\\sindows\\CreateAssetFile.exe").
Here is a sample code that starts CreateAssetFile.exe program and waits until it will be finished:
The same functionality implemented using STUtil library: