Jump to content
  • Advertisement


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


Redirecting Standard Output to a Windows Program

This topic is 5785 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

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!