如题!!!!!!!!!!!!void CJune22_tooltestDlg::OnBnClickedButtonSend()
{
// TODO: Add your control notification handler code here
int nReceived;
XXConnect.Create();
nReceived=XXConnect.Connect("192.168.1.84",5680);
if(nReceived!=SOCKET_ERROR)
{
m_ok+=" connected successfully.",AfxMessageBox(m_ok,MB_OK|MB_ICONEXCLAMATION|MB_ICONEXCLAMATION);
}
else if(nReceived==SOCKET_ERROR)
{
CHAR buf[10]={0};
int Error=WSAGetLastError();
m_ok+=" failed to connect.",m_ok+="Error code:",m_ok+=itoa(Error,buf,10),AfxMessageBox(m_ok,MB_OK|MB_ICONEXCLAMATION|MB_ICONEXCLAMATION);
}
}