CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: DOS - MFC

  1. #1
    Join Date
    May 1999
    Location
    Canada
    Posts
    176

    DOS - MFC

    Hello,
    I have a DOS program producing outputs. I want to be able to have access to these outputs so that I can store them in a String in my MFC program.

    Eg: when you type command 'net name' under NT, the system displays your computer name et your username. In my MFC program, I call the function 'system("net name....")' to execute this command. Now, I wanna be able to get the get the message displayed in the DOS window.

    Thank you.

    Where there is a WISH, there is a WILL.

  2. #2
    Join Date
    May 1999
    Location
    Toronto, Ontario, Canada
    Posts
    155

    Re: DOS - MFC

    Take a look at this article. "Redirecting Standard Output to a CEdit Control"

    http://www.codeguru.com/misc/redirect.shtml

    -Safai

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured