Results 1 to 6 of 6

Thread: Getting the text from a DOS console window.

  1. #1
    Guest

    Arrow

    Hello,
    I am making a program that shells the Borland C++ 5.5 compiler, using ShellExecute... and the question is.. how do I get the output? what was "written" in the console window?

    And another question. How do I make the application wait until the console window is closed before continuing??


    Thanks,
    Dennis Wrenn

    PS: I am not as concerned about this... but how do you use vectors?

  2. #2
    Guest
    I think you have to set the current directory first.

  3. #3
    Guest
    Thanks, how do I do that?

    I know it's

    cd dir

    in dos, but how do I do it with shellexecute?

  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Use the SetCurrentDirectory API dennis!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  5. #5
    Guest
    Thanks Jop! but I don't think thats the problem...
    I asked parksie a while ago.. and he said the reason was, that when you use shellexecute, you are opening the actuall program, and it doesn't recognize >

    but the MSDOS console does.

    So... I have to learn how to use CreateProccess, and use that....

  6. #6
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I'm a VC++ newbie, so I didn't quite understood the problem

    but I'm sure I'll learn VC++ in less then 9 months (as well as I did with VB )
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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