//这是服务器端代码,我在连接到服务器后使用onReceive
//void CMFCExampleDlg::OnReceive(int nErrorCode)
{
recv(clientsocket,"200" , 1024, 0);
m_name.SetVariable("gear","1");
}
//////客户端
//BOOL CMFCClientDlg::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->lParam==VK_NUMLOCK)
send(s,"200",1024,0);
return 0;
}