|
-
Apr 20th, 2001, 12:27 PM
#1
Thread Starter
Lively Member
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.
-
Apr 20th, 2001, 12:32 PM
#2
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 20th, 2001, 12:42 PM
#3
Lively Member
does VC++ add code to your project for the "Press Any Key to Continue"
im a newbe.
-
Apr 20th, 2001, 12:44 PM
#4
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 24th, 2001, 11:47 PM
#5
Frenzied Member
???????????
Mine never does that!?!?!?
-
Apr 25th, 2001, 08:45 AM
#6
Frenzied Member
-
Apr 25th, 2001, 08:47 AM
#7
-
Apr 25th, 2001, 09:06 AM
#8
Frenzied Member
its probably some setting I accidentally turned off.
-
Apr 25th, 2001, 09:08 AM
#9
Frenzied Member
I was just looking at my settings, but I couldn't find anything about it....
-
Apr 25th, 2001, 11:57 AM
#10
Monday Morning Lunatic
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
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Apr 25th, 2001, 03:52 PM
#11
Frenzied Member
oh I just press F5
-
Apr 25th, 2001, 03:56 PM
#12
Monday Morning Lunatic
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
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|