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. how to capture system date change event?

how to capture system date change event?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
8 Posts 5 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
    Super Hornet
    wrote on last edited by
    #1

    is there any event for system date change?

    H 1 Reply Last reply
    0
    • S Super Hornet

      is there any event for system date change?

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      Do you need to SetSystemTime?

      Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

      S 1 Reply Last reply
      0
      • H Hamid Taebi

        Do you need to SetSystemTime?

        Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

        S Offline
        S Offline
        Super Hornet
        wrote on last edited by
        #3

        No. If system date changes i need to insert data into database

        _ 1 Reply Last reply
        0
        • S Super Hornet

          No. If system date changes i need to insert data into database

          _ Offline
          _ Offline
          _Superman_
          wrote on last edited by
          #4

          Check out WM_TIMECHANGE message.

          «_Superman_»

          S 1 Reply Last reply
          0
          • _ _Superman_

            Check out WM_TIMECHANGE message.

            «_Superman_»

            S Offline
            S Offline
            Super Hornet
            wrote on last edited by
            #5

            WM_TIMECHANGE will it be posted for evry mili sec or sec??? Actually I am looking for date change but not time change

            I _ 2 Replies Last reply
            0
            • S Super Hornet

              WM_TIMECHANGE will it be posted for evry mili sec or sec??? Actually I am looking for date change but not time change

              I Offline
              I Offline
              Iain Clarke Warrior Programmer
              wrote on last edited by
              #6

              Imagine a cold and lonely computer somewhere. It is a daaaaark and stormy night, about 11pm. The evil operator comes along, and changes time back by 22 hours, to 1am. This is not on the face of it, a date change. In reality, it is. Iain.

              Codeproject MVP for C++, I can't believe it's for my lounge posts...

              1 Reply Last reply
              0
              • S Super Hornet

                WM_TIMECHANGE will it be posted for evry mili sec or sec??? Actually I am looking for date change but not time change

                _ Offline
                _ Offline
                _Superman_
                wrote on last edited by
                #7

                WM_TIMECHANGE is posted when a user changes the data or time or time zone. It is not posted for every clock tick.

                «_Superman_»

                M 1 Reply Last reply
                0
                • _ _Superman_

                  WM_TIMECHANGE is posted when a user changes the data or time or time zone. It is not posted for every clock tick.

                  «_Superman_»

                  M Offline
                  M Offline
                  mohit_1082
                  wrote on last edited by
                  #8

                  use function "afx_msg void OnTimeChange( )"

                  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