Results 1 to 12 of 12

Thread: "Press any key to continue"

  1. #1

    Thread Starter
    Lively Member new_money's Avatar
    Join Date
    Jan 2001
    Posts
    127
    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.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Lively Member
    Join Date
    Sep 2000
    Posts
    113
    does VC++ add code to your project for the "Press Any Key to Continue"

    im a newbe.

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  5. #5
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    ???????????

    Mine never does that!?!?!?

  6. #6
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    I have VC++ 6.0

  7. #7
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    That was strange.... ....parksie help us out here!!
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  8. #8
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    its probably some setting I accidentally turned off.

  9. #9
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    I was just looking at my settings, but I couldn't find anything about it....
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  10. #10
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  11. #11
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    oh I just press F5

  12. #12
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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
  •  



Click Here to Expand Forum to Full Width