
Redirecting output from command line program to MFC App
Quote:
>I'm developping an MFC application that makes use of a command line tool.
>For logging purposes I'd like to catch the output of this tool. How can I
>redirect the output from this tools so that I can capture it in my MFC App ?
Marc,
Have a look on MSDN for the topic titled "Creating a Child Process
with Redirected Input and Output". It's not exactly what you're asking
for, but it should show you the general technique. There's also a
Knowledge Base article Q150956 "INFO: Redirection Issues on Windows 95
MS-DOS Applications" that may also be relevant.
Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.