Archived

This topic is now archived and is closed to further replies.

Redirecting Standard Output to a Windows Program

This topic is 5502 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I want to redirect the Standard Output of a command-line program to be the input of a function I am writing for a windows program? Specifically, I have a program running that will execute a separate command-line program. I want the StdOut of that commandline program to come back to my windows program so that I can output it. Can anyone tell me how or point me to a tutorial?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
the article "Creating a Child Process with Redirected Input and Output" popped up as #1 on a "stdin" search of the VS6 MSDN Library. it has example code at the bottom.

looks like it''s using pipes in the parent process along w/...StdHandle calls.

Share this post


Link to post
Share on other sites