Hi!
I am experiencing difficulties while using the Microsoft Visual C++ 2005 Express Edition: Any program that i write, upon pressing start to run it, would automatically end itself almost immediately, giving me no time to see the output.
Is there any way to delay the programs from exiting (Any settings that i should change )
Thank you.
Regards,
Ebenezer

How do i stop any program that i run from exiting almost immediately.
Haicheng
Thanks, Ctrl F5 works but is there an icon to activate it... (Like execute of Visual C++ 6.0 IDE )
(Is there a difference between F5 and Ctrl F5 )
Thank you.
Regards,
Ebenezer
(H)MICHAEL(H)
It's not there by default, but you can add it to the toolbar through Tools -> Customize. Go to Commands -> Debug -> drag "Start Without Debugging" to the toolbar.
F5 initiates the program under the debugger. If you add breakpoints to your code, execution will stop at that point, and then you can look at the program state at that point.
Ctrl-F5 starts the program without debugging. At the end of the program, Visual C++ inserts a system("pause"); command which shows the "press any key to continue..." prompt.
ale_vera_0603
Use Ctrl-F5 instead of F5.
Or put a Console::ReadKey as the last line of your main function.
Perry_Rapp
Thank you all for taking the time to read my post and answering. =)
Regards,
Ebenezer