locked
Writing to same console in MFC RRS feed

  • Question

  • Hi,

    I have a MFC application. When I run the .EXE from a command
    prompt, and if I want help (eg. xcopy /?), can I get control
    of the command prompt window to print the message over there?

    I tried using AllocConsole(), but that opens a new console.
    I want to do it on the same command line.

    I am aware of AttachConsole() which needs SDK and will work for OS XP onwards. Unfortunately mine is WIN 2000 server and Visual studio 6.

    Can anyone help me in this regard

    Thanks

    SAM

    Wednesday, June 18, 2014 6:12 PM

Answers