Help: Console window disappears immediately when running in IDE

1 view
Skip to first unread message

chen yinghe

Feb 15, 2002, 10:11:59 AM2/15/02

I just installed I wrote a simple "hello world" console
application, after compiling and run the program, the command window
disppears immediately. I remember that in Visual C++ 6.0, the command
window will not disappear until I press any key. For sometimes I need
to view the result the program runs. I know that I can set break point
to view the result.

I am just wondering if I can make run the console
application just like the style in Visual C++ 6.0.

Thanks in advance.

Jochen Kalmbach

Feb 15, 2002, 10:16:38 AM2/15/02

It IS the same behaviour than in VC6...

If you run the program with F5 (start with debugger), it will dispapear
after it is finished

If you run the program with Ctrl-F5 (start without debugger), it will wait
until a key is pressed...



Feb 15, 2002, 11:00:07 PM2/15/02
That is by design. In VC6 most people just clicked on the "!" exlamation
mark icon to run and that is the what caused the "press any key to continue"
message to appear. In VC7 you have to add the icon to the toolbar if you
want it, or you can just press CTRL + F5. I added the icon back to the
toolbar, but that is just me.

"chen yinghe" <> wrote in message

Reply all
Reply to author
0 new messages