Is there a way to run a process using CreateProcess and then have the program that called it just kinda hang out until the process is finished? I am needing to use it in a windows program that calls a dos based program tat just does some file i/o and doesnt show anything and then ends, but i wanted to do it without the annoying dos box. i tried just letting create process go and then continue the program but the rest of the program finishes too fast. I have also tried using ShellExecute to run it but again i get the same problem. it will run with the system command but that pops up the annoying dos window.
any thoughts would be greatly appreciated.