c++ - Execute a process and return its standard output in VC++ -
The easiest way to execute the process is to wait for it to end, and then add it as a string Return standard output?
In a little belt like Pearl.
I do not seek a cross-platform thing, I just need the fastest solution for VC ++.
Any thoughts?
WinAPI Solution:
You will receive redirect input (hStdInput area in STARTUPINFO structure) and Output (hStdOutput) to make the process with your pipes (see CreatePipe) (see CreateProcess), and then just read from the pipe (see ReadFile)).
Comments
Post a Comment