I'm trying to send commands through the console output via std::cout to a command-line program that I started with fopen("foo.exe","w"). I want to wait until the process has finished before continuing executing my main application. For some reason this crashes my application. Is there a better way of starting the command-line program and sending console outputs?
Thanks a lot!
Nhat