//Server side void CMFCExampleDlg::OnReceive(int nErrorCode) { recv(clientsocket,"200" , 1024, 0); m_name.SetVariable("gear","1"); } //client side BOOL CMFCClientDlg::PreTranslateMessage(MSG* pMsg) { if(pMsg->lParam==VK_NUMLOCK) send(s,"200",1024,0); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)