往往就是在使用CREATE和LISTEN方法之前忘了加以下代码 if(!AfxSocketInit()) AfxMessageBox("Failed to Initialize Sockets",MB_OK| MB_ICONSTOP);