Is there a way to stop a console app from asking "Press Any Key to Continue" when it is done executing code. All I'm doing is setting a key in the registry and don't really want any user input.
Printable View
Is there a way to stop a console app from asking "Press Any Key to Continue" when it is done executing code. All I'm doing is setting a key in the registry and don't really want any user input.
That's VC++ doing that. If you run the program normally the console window will immediately close as soon as it's finished. VC++ pauses it to allow you to read the output. If you go to your project folder and run the program it's fine.
does VC++ add code to your project for the "Press Any Key to Continue"
im a newbe.
No. When you press the execute button it runs a different program which runs your program. When your program finishes the first program puts the message and waits.
Mine never does that!?!?!? :confused:
I have VC++ 6.0
That was strange....:confused: ....parksie help us out here!! :D
its probably some setting I accidentally turned off. :rolleyes:
I was just looking at my settings, but I couldn't find anything about it....:(
If you press F5 to run it through the debugger, it doesn't do it. If you press Ctrl-F5 to run the program externally, it does...although if there is a setting to turn it off I haven't found it ;)
oh I just press F5 :)
Despite all evidence that I shouldn't, I normally develop in Release mode, and run them externally...and only use debug builds when it doesn't work :eek: