1
C - C++ / IO with external process
« on: November 30, 2014, 07:44:54 am »
I have come upon an idea with which I have little experience. I essentially want to run a Win32 console executable and send input and retrieve output all from a separate C/C++ application. Before I start researching on my own I thought I'd post here and see if you guys have any experiences that would maybe help with this. Not looking for an answer but maybe a thought or technology that could help.
In pseudo code (well my version of pseudo), here's what I was thinking of the C/C++ application:
constructor/main method
start exe/process
void send_cmd(command)
<way to send text input to external console application>
data get_output()
<way to retreive stdout from console>
void destroy()
end exe/process
Any help greatly appreciated.
In pseudo code (well my version of pseudo), here's what I was thinking of the C/C++ application:
constructor/main method
start exe/process
void send_cmd(command)
<way to send text input to external console application>
data get_output()
<way to retreive stdout from console>
void destroy()
end exe/process
Any help greatly appreciated.