Redirecting output from command line program to MFC App 
Author Message
 Redirecting output from command line program to MFC App

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 ?


Sat, 29 Sep 2001 03:00:00 GMT  
 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.



Sun, 30 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MFC and DOS apps - Redirecting console output to an MFC app (Newbie)

2. MFC and DOS apps - Redirecting console output to an MFC app (Newbie)

3. output to command-line for a MFC-dialog based app

4. Redirecting output from mfc program

5. How to output to the command Line in MFC

6. Launching MFC app from command line with an argv

7. How to accept command lines in MFC app?

8. Redirecting std output with CreateProcess DOS command

9. Getting Command Lines From a MFC program?

10. redirecting output of MSDOS app

11. Redirecting input and output of a program

12. Using stdin to redirect output from a program...

 

 
Powered by phpBB® Forum Software