15,440
社区成员
发帖
与我相关
我的任务
分享
void CDemoDlg::OnButton()
{
// TODO: Add your control notification handler code here
char buf[10];
sRecv.Receive(buf,10);
AfxMessageBox(buf);
return;
}
UINT RecvData(LPVOID lpParam)
{
CDemoDlg *pOwer=(CDemoDlg*)lpParam;
char buf[10];
while(1)
{
memset(buf,0,10);
pOwer->sRecv.Receive(buf,10);
AfxMessageBox(buf);
}
}