1.vc怎么获得时间?
vc怎么获得时间?
void CUdp2Dlg::OnUDPClient()
{
//建立客户端套接字,源码并发送,源码收费系统 源码目的源码私人笔记源码获取网络时间
CString strsend,strrece;
strsend="0 1 3 0 0 0 0 0 0 0 0 0 0";
m_sockrecv.Create(,SOCK_DGRAM,".6..");
m_sockrecv.Bind(,".6..");
m_sockrecv.SendTo(strsend,,,".6..",0);
SetTimer(1,,NULL);
}
void CUdp2Dlg::OnTimer(UINT nIDEvent)
{
//建立定时器,接受时间
char strrece[];
UINT uport=;
CString strip=".6..";
int irecv=m_sockrecv.ReceiveFrom(strrece,源码苹果飞刀源码,strip,uport,0);
//strrece[irecv]='\0';
if(irecv!=SOCKET_ERROR)
{
strrece[irecv]=NULL;
m_editrecv=strrece;
UpdateData(FALSE);
}
CDialog::OnTimer(nIDEvent);
}
2024-11-17 11:18
2024-11-17 11:07
2024-11-17 11:00
2024-11-17 10:55
2024-11-17 10:51
2024-11-17 10:02
2024-11-17 09:40
2024-11-17 09:37