一个服务器一个客户端简单vc++聊天室void CClientSocket::OnReceive(int nErrorCode) { // AfxMessageBox("CClientSocket::OnReceive"); // AfxMessageBox("CClientSocket::OnReceive"); CSocket::OnReceive(nErrorCode); if(nErrorCode==0) m_pDlg->OnReceive(this); }