CString strIP = "192.168.14.119";
UINT    uPort = 1050;CSocket *m_pRecSocket;if (m_pRecSocket == NULL)
{
m_pRecSocket = new CRecSocket(this); if (m_pRecSocket->Create(0,SOCK_DGRAM))
{
if (m_pRecSocket->Bind(uPort,strIP))
{
MessageBox("成功绑定");
}
else
{
int nError = m_pRecSocket->GetLastError();
CString str;
str.Format("%ld",nError);
MessageBox("不能建立socket:"+str);
}
}
else
{
int nError = m_pRecSocket->GetLastError();
CString str;
str.Format("%ld",nError);
MessageBox("不能建立socket:"+str);
}
}上面过程哪些不对?