Pause or press any key to continue

This is a discussion on Pause or press any key to continue within the C Programming forums, part of the General Programming Boards category; I have written a C program (MS 6.0) that is being used on now on a Windows 98 machine that ...

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    20

    Pause or press any key to continue

    I have written a C program (MS 6.0) that is being used on now on a Windows 98 machine that does not have C installed. When they run the program, they do not get the message that I get when I run the program on my machine(which has C installed). I am talking about the message which says something like "press any key to continue ..." or something like that.

    Anyway, because of this, they are losing the last few messages that I had printed to the screen from the program, and the dialog just goes away.

    Is there a way to put a pause on the dialog that will keep the screen there for them, even though they are not running C itself?
    I was thinking of just making them enter a programmed input field to let them exit the program.

    Any ideas?

    Thanks ...

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    It's in the FAQ

    (put a getch at the end)

  3. #3
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    It makes no difference whether they have a c compiler installed. C programs are stand alone executables and will run on any machine running the os they are are compiled for.
    Monday - what a way to spend a seventh of your life

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    20
    Thank you .... I see it in the FAQs. Sorry.
    muffin

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 12:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 09:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21