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

    Exclamation Error in fetching time from Remote Server

    Hi, am using NetRemoteTOD from Windows XP to obtain time on Windows2003 Server. The function returns error code 1113, which is some codepage error. What could be the cause of this? The Regional language settings of both PC's are identical.

  2. #2
    Join Date
    Apr 2002
    Posts
    61

    Re: Error in fetching time from Remote Server

    try connecting to the time server with windows just to make sure everything is all right "net time \\computername /QUERYSNTP"
    If this works you could always shell that and use the return, if it doesn't than you have more problem than your time request function.

  3. #3
    Join Date
    Jan 2005
    Posts
    2

    Exclamation Re: Error in fetching time from Remote Server

    Thanks for yours.The net time worked fine even earlier on, but am not sure as to why the NetRemoteTOD function does not give the proper result. It gives my PC time currectly if the first parameter is set to NULL though. Do u know any other function which could give me the time of a remote server over the network.

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