全文预览

C++MFC入门教程

上传者:学习一点 |  格式:pdf  |  页数:75 |  大小:13743KB

文档介绍
er( 1,3000,NULL);\r|\rvoid CMy63_sl_serverDlg::OnTimer(UINT nIDEvent)\r(\rstatic iIndex=0;\rchar szSend[20];\rsprintf(szSend,"%010d",iIndex-H-);\r//^_TCP#$\rint iSend= m_sockSend.Send(szSend, 10,0);\r}\rBOOL CMy63_sl_clientDlg::OnInitDialog()\r{\rCDialog::OnInitDialog();\rwVxIJ\rm_sockRecv.Create();\rw^vBC\rBOOL fC=m_sockRecv.Connect(" 127.0.0.1",6802);\rTRACE("connect is %s\n,,,(fC)?"OK":"Error,t);\rw€9?a#$\rSetTimer( 1,3000,NULL);\rvoid CMy63_s l_clientDlg::OnTimer(UINT nIDEvent)\r{\rchar szRecv[20];\rwaTCP#$\rint iRecv =m_sockRecv.Receive(szRecv, 10,0);\rTRACE("received %d byte\nM,iRecv);\rif(iRecv>=0).\rszRccv[iRecv]=,\O,;\rm_szRecv=szRecv;\rUpdateData(FALSE);\r‚ƒ„…ij?63_sl_client†‡{@A?63_sl_server†‡{7894%

收藏

分享

举报
下载此文档