Click to See Complete Forum and Search --> : Modal application


Spotnick
May 2nd, 1999, 01:32 PM
I know you can in dos programs call an
application with system() and other functions and
it will block your current program, but I would
like to know how to do this with a Windows
application.

I need to start a dos program and block the current program until the dos program is finished to be able

ilgar
May 11th, 1999, 01:14 AM
If you run your program using CreateProcess function, you'll get ProcessID.

Then call function WaitForSingleObject(ProcessID, INFINITE)

Maybe, I'm wrong.

Thanks,
Ilgar Mashayev