1025��Դ��
æä¹åå¨linuxä¸ç¼è¯QT éå°è¿ç±»ä¼¼çé误 ç¼è¯å¨é ç½®é误çé®é¢
ä¿®æ¹/root/.bash_profileï¼æqmakeè·¯å¾æ¹ä¸º*/mkspec/qws/arm-linux-g++
vc怎么获得时间?
void CUdp2Dlg::OnUDPClient()
{
//建立客户端套接字,并发送,源码rungata源码分析目的源码赚多多 源码获取网络时间
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,源码cornerstone 源码下载,strip,uport,0);
//strrece[irecv]='\0';
if(irecv!=SOCKET_ERROR)
{
strrece[irecv]=NULL;
m_editrecv=strrece;
UpdateData(FALSE);
}
CDialog::OnTimer(nIDEvent);
}
2024-12-23 23:42
2024-12-23 23:35
2024-12-23 23:02
2024-12-23 22:31
2024-12-23 22:11