Waiting till called program finishes
Posted on 2000-03-05
I am writing a C++ program which will call another program using CreateProcess function. I want to halt my first program till the called program finishes and want to execute the next line after that.
How can I do that?
As soon as Notepad launched my program will be inactive and when the user closes the notepad I want to run the messagebox code?