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. Help with timer 8-J

Help with timer 8-J

Scheduled Pinned Locked Moved C / C++ / MFC
helplearning
5 Posts 2 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.
  • S Offline
    S Offline
    Snyp
    wrote on last edited by
    #1

    I am making a timer program but I want it to stop at a certain number like 300. I made it so it counted but the timer wouldn't stop at a certain number i.e. 300. [It is possible to represent everything in this universe by using 0 and 1] I was born intelligent Education ruined me!. An idea is useless until it has been implemented.

    A 1 Reply Last reply
    0
    • S Snyp

      I am making a timer program but I want it to stop at a certain number like 300. I made it so it counted but the timer wouldn't stop at a certain number i.e. 300. [It is possible to represent everything in this universe by using 0 and 1] I was born intelligent Education ruined me!. An idea is useless until it has been implemented.

      A Offline
      A Offline
      AlexO
      wrote on last edited by
      #2

      Source code might help

      S 1 Reply Last reply
      0
      • A AlexO

        Source code might help

        S Offline
        S Offline
        Snyp
        wrote on last edited by
        #3

        if(m_iCount == '300') { KillTimer(ID_TIMER); m_cStart.EnableWindow(TRUE); } I have this in my Start button but I just realized that, that place is not a very good choice (YAY). But I still don't know were to put it..... [It is possible to represent everything in this universe by using 0 and 1] I was born intelligent Education ruined me!. An idea is useless until it has been implemented.

        S 2 Replies Last reply
        0
        • S Snyp

          if(m_iCount == '300') { KillTimer(ID_TIMER); m_cStart.EnableWindow(TRUE); } I have this in my Start button but I just realized that, that place is not a very good choice (YAY). But I still don't know were to put it..... [It is possible to represent everything in this universe by using 0 and 1] I was born intelligent Education ruined me!. An idea is useless until it has been implemented.

          S Offline
          S Offline
          Snyp
          wrote on last edited by
          #4

          I figured this out :laugh: see I had to include this in the wm_timer function or the OnTimer function, and had to change the statement to: if(m_iCount == 300) { KillTimer(ID_TIMER); m_cStart.EnableWindow(TRUE); } [It is possible to represent everything in this universe by using 0 and 1] I was born intelligent Education ruined me!. An idea is useless until it has been implemented.

          1 Reply Last reply
          0
          • S Snyp

            if(m_iCount == '300') { KillTimer(ID_TIMER); m_cStart.EnableWindow(TRUE); } I have this in my Start button but I just realized that, that place is not a very good choice (YAY). But I still don't know were to put it..... [It is possible to represent everything in this universe by using 0 and 1] I was born intelligent Education ruined me!. An idea is useless until it has been implemented.

            S Offline
            S Offline
            Snyp
            wrote on last edited by
            #5

            Thx though for the concern.... ;P:laugh::cool: [It is possible to represent everything in this universe by using 0 and 1] I was born intelligent Education ruined me!. An idea is useless until it has been implemented.

            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