CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 1999
    Posts
    74

    How do I view network time clock?

    I have a label button in my form. Normally if I want to view system time clock, all I have to do label1.caption = time(). This is system time clock not the server time clock. I don't know how to call and display network time clock on label1.caption.


  2. #2
    Join Date
    Apr 1999
    Location
    Brooklyn, NY USA
    Posts
    171

    Re: How do I view network time clock?

    I've been looking for the answer for more simple problem. I needed to have server system time to use it when I make an update. I spent a lot of time before somebody gave me some idea. The solution is not simple. I use Open ...For Output statement to create an empty file on the server, close that file and use FileDateTime function with the name of that file as parameter. After that I kill this file. I have to check Time Zone settings on both computers to be sure that displayed time is correct. If you are not going to refresh your label very often, I think you can use this technic. There are more complicated methods with API, which did not work correctly.
    Vlad


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: How do I view network time clock?

    NetRemoteTOD is the API go get the remote Time Of Day.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured