Writing to same console in MFC
-
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
-
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
-
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
When you run an exe from the command prompt, the command prompt IS your default standard output. Your question doesn't exactly make sense.