01-27-2011 11:38 AM
How to process this command line:
Test.exe -c foo > return.txt
01-27-2011 02:10 PM
You find useful informations in this thread and the linked ones.
01-27-2011 03:00 PM
Thanks a lot. That helps but, may I want too much :), redirecting standard output to file and then reading it back is not fast enough (about 10 msec on my PC). Is there any way to catch standard output faster?
01-28-2011 02:44 PM
I have never tried to do this in windows, but you might try a style similar to the fork(), pipe(), dup() combination used in unix based cgi server programming. An example of what I am talking about can be found here. And you should be able to access some Win 32 functions that do something similar. Here is a reference. Let me know if it works out for you.