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. Synchronize time

Synchronize time

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++sysadminquestion
5 Posts 3 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.
  • L Offline
    L Offline
    Le Sourcier
    wrote on last edited by
    #1

    My program needs to be synchronised with my data server. I must do it into my program, in VC++ 6 (not in .NET). I can not find any function in msdn which do it. :(( I've another solution,;) instead of synchronising, I need to get the system time of the server. But I can not found any function to do this.:sigh: Does someone has already realize it ? Firejano

    P K 2 Replies Last reply
    0
    • L Le Sourcier

      My program needs to be synchronised with my data server. I must do it into my program, in VC++ 6 (not in .NET). I can not find any function in msdn which do it. :(( I've another solution,;) instead of synchronising, I need to get the system time of the server. But I can not found any function to do this.:sigh: Does someone has already realize it ? Firejano

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      First off, what kind of data are you synchronising? Instead of depending on the time of the server, can you not depend on the time of the content/file that you are trying to synchronise ?


      -Prakash

      L 1 Reply Last reply
      0
      • P Prakash Nadar

        First off, what kind of data are you synchronising? Instead of depending on the time of the server, can you not depend on the time of the content/file that you are trying to synchronise ?


        -Prakash

        L Offline
        L Offline
        Le Sourcier
        wrote on last edited by
        #3

        I try to synchronise my computer system time, with server one. Firejano

        1 Reply Last reply
        0
        • L Le Sourcier

          My program needs to be synchronised with my data server. I must do it into my program, in VC++ 6 (not in .NET). I can not find any function in msdn which do it. :(( I've another solution,;) instead of synchronising, I need to get the system time of the server. But I can not found any function to do this.:sigh: Does someone has already realize it ? Firejano

          K Offline
          K Offline
          kakan
          wrote on last edited by
          #4

          Maybe this article can help you? http://www.codeproject.com/datetime/w32timeservice.asp[^]

          L 1 Reply Last reply
          0
          • K kakan

            Maybe this article can help you? http://www.codeproject.com/datetime/w32timeservice.asp[^]

            L Offline
            L Offline
            Le Sourcier
            wrote on last edited by
            #5

            thanks, with the msdos command "net time /SET /YES \\my_server" you can synvhronise computer system time with the server one Tchao Firejano

            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