I am running an application through a pipe. This applcation starts to record sound from the soundcard until I hit Enter.
To start the application I am using the following line:
then I use
_cmd_pipe = _popen(recordWaveCmd.c_str(),"r")
to send a "\n" to stop recording.
However, when I use the command
my main application stops until i hit the Escape key, and that's a problem.
Is there anyway to solve this problem?
Why are you trying to write to something that's opened read-only?
Accualy that is not the problem, already tried with "w". The application pauses when the _pclose function is called. I have to hit a key to continue the execution of the main application.