Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. pause commands

pause commands

Scheduled Pinned Locked Moved C / C++ / MFC
comquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    InternetMill
    wrote on last edited by
    #1

    Hi all, Is there any "Pause" commands out there? Besides using a for loop. Thanks Matt Matt Millican http://www.internetmill.com

    M C 2 Replies Last reply
    0
    • I InternetMill

      Hi all, Is there any "Pause" commands out there? Besides using a for loop. Thanks Matt Matt Millican http://www.internetmill.com

      M Offline
      M Offline
      Mike Upton
      wrote on last edited by
      #2

      Try Sleep(time_in_milliseconds)


      "We are the knights who say Ni" (The Knights Who Say Ni)

      I 1 Reply Last reply
      0
      • I InternetMill

        Hi all, Is there any "Pause" commands out there? Besides using a for loop. Thanks Matt Matt Millican http://www.internetmill.com

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        Yes, you can use Sleep(DWORD dwMiliseconds)

        M 1 Reply Last reply
        0
        • C Cedric Moonen

          Yes, you can use Sleep(DWORD dwMiliseconds)

          M Offline
          M Offline
          moraalg
          wrote on last edited by
          #4

          if you want to you can use system("pause") which is just like the DOS command, it will ask the user to press any key to continue, include stdlib.h

          1 Reply Last reply
          0
          • M Mike Upton

            Try Sleep(time_in_milliseconds)


            "We are the knights who say Ni" (The Knights Who Say Ni)

            I Offline
            I Offline
            InternetMill
            wrote on last edited by
            #5

            Thanks much guys, I will try that out. Matt Matt Millican http://www.internetmill.com

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups