How does VC get time? VC does how to get time on the upper computer

Updated on technology 2024-04-18
10 answers
  1. Anonymous users2024-02-07

    void cudp2dlg::onudpclient() establishes a client socket and sends it with the purpose of getting the network time cstring strsend,strrece;

    strsend="0 1 3 0 0 0 0 0 0 0 0 0 0";

    m_,sock_dgram,"");

    m_,"");

    m_,64,123,"",0);

    settimer(1,3000,null);

    void cudp2dlg::ontimer(uint nidevent)

    Establish a timer to accept the time.

    char strrece[1024];

    uint uport=123;

    cstring strip="";

    int irecv=m_,1025,strip,uport,0);

    strrece[irecv]='\0';

    if(irecv!=socket_error)strrece[irecv]=null;

    m_editrecv=strrece;

    updatedata(false);

    cdialog::ontimer(nidevent);

  2. Anonymous users2024-02-06

    Is the computer not on time?

    Is it that the motherboard battery is dead.

    It's OK to change it

    Also use VC.

  3. Anonymous users2024-02-05

    The getlocaltime function will do the trick, depending on the msdn

  4. Anonymous users2024-02-04

    National Time Service Center with source code on it.

  5. Anonymous users2024-02-03

    What's the problemQ I'll help you see.

  6. Anonymous users2024-02-02

    It has something to do with the time zone, our Beijing time is GMT+08:00 (East 8th Zone), which is 8 hours longer than the standard time.

    What is obtained is 6h, which is converted to 14h Beijing time

    What is obtained is 20h, which is converted to Beijing time and is 28h-24h=4h

  7. Anonymous users2024-02-01

    The format of the ctime is fixed, but you can add a sentence after the one above.

    0"),_t("-'));

    That's it.

  8. Anonymous users2024-01-31

    My space, there are so many ways to do it.

  9. Anonymous users2024-01-30

    Can you consider the time it takes to access a server over the Internet to determine the uniform time?

    Getting a separate PC time is not unified.

  10. Anonymous users2024-01-29

    The concept of a time slice is not for the context of the orchestration. It's for the system, and in general, the frequency of the CPU is 1 second, which is the size of the time slice.

Related questions
6 answers2024-04-18

**It is best not to spend more than half an hour on the face, because if the time is too long, not only will it not continue to deliver nutrients to **, but it will absorb the water on your ** because of the change and decrease of nutrients, which will cause **water loss, which is not good. >>>More

14 answers2024-04-18

From a friend's friend's Weibo, I saw that my childhood playmate got married yesterday. She's twenty years old. Bless me from afar. >>>More

17 answers2024-04-18

Explained in terms of physiological changes – as we age, the body's biological clock slows down. >>>More

7 answers2024-04-18

When you are happy and happy, even time becomes cheerful, and at that time, you are selfless. And when you're sad, your whole sky is gray and shrouded in gray. Of course, these are only human perceptions. >>>More

30 answers2024-04-18

The theory of relativity is only effective for the way of motion at large speeds (the speed of light), and at lower speeds, the length of this time perturbation is in the order of ultra-microseconds, so don't listen to the upstairs. >>>More