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. analog clock

analog clock

Scheduled Pinned Locked Moved C / C++ / MFC
6 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.
  • M Offline
    M Offline
    Mr Bose Dayala
    wrote on last edited by
    #1

    Hi all, can anybody gimme the program with code to create a anolog clock. thanks in advance. Mr.Dayala ThomasKennedyBose

    T R V 3 Replies Last reply
    0
    • M Mr Bose Dayala

      Hi all, can anybody gimme the program with code to create a anolog clock. thanks in advance. Mr.Dayala ThomasKennedyBose

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      search for analog clock in c++ section at http://www.planetsourcecode.com ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

      M 1 Reply Last reply
      0
      • M Mr Bose Dayala

        Hi all, can anybody gimme the program with code to create a anolog clock. thanks in advance. Mr.Dayala ThomasKennedyBose

        R Offline
        R Offline
        Ryan Binns
        wrote on last edited by
        #3

        Mr Bose Dayala wrote: can anybody gimme the program with code to create a anolog clock. Probably, but nobody will. Why don't you write it yourself and if you run into any problems, ask a question about how to do a particular thing. You're much more likely to get a useful response that way.

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        1 Reply Last reply
        0
        • T ThatsAlok

          search for analog clock in c++ section at http://www.planetsourcecode.com ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

          M Offline
          M Offline
          Mr Bose Dayala
          wrote on last edited by
          #4

          hi alok, thanks for quick reply..I found it in planetsource bit it is on general C++.I want it in VC++..can help me out?? my problem is with time, otherwise I can manage by wriitng myself. thanks in advance. ThomasKennedyBose

          T 1 Reply Last reply
          0
          • M Mr Bose Dayala

            hi alok, thanks for quick reply..I found it in planetsource bit it is on general C++.I want it in VC++..can help me out?? my problem is with time, otherwise I can manage by wriitng myself. thanks in advance. ThomasKennedyBose

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            could you eloborate you problem or mail me at thatsalok@gmail.com ----------------------------- "I Think It Will Help" ----------------------------- Alok Gupta visit me at http://www.thisisalok.tk

            1 Reply Last reply
            0
            • M Mr Bose Dayala

              Hi all, can anybody gimme the program with code to create a anolog clock. thanks in advance. Mr.Dayala ThomasKennedyBose

              V Offline
              V Offline
              V 0
              wrote on last edited by
              #6

              I found one some months ago here on CP. have you looked here in the articles? besides I don't think it should be so dificult to make. think of what parts a clock consists (circle, lines, pointers,...) All of them are static accept the pointers, the base is static (center of the circle) while the point moves, it moves (for the seconds) 360/60 of the circle every second. The only thing you need to do is to redraw this pointer every second on the right place. Just know your geometry.;) hope this helps... [EDIT] Oh by the way, I did analog meters for a car once, which worked perfectly, the one thing you may want to consider is buffering to reduce flicker. I did it as described above, but I don't have the code anymore :( [/EDIT] "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix

              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