VS2010 updateData() 不管用了?
// TODO: 在此添加控件通知处理程序代码
UpdateData();
//AfxMessageBox(m_strMsg);
//m_strMsg="ok";
if(!m_strMsg.IsEmpty ())
{
int nLen = m_strMsg.GetLength ();
int nSent = m_socketCommunicate2.Send (LPCTSTR(m_strMsg),2*nLen);
if(nSent != SOCKET_ERROR)
{
m_listSent.AddString (m_strMsg);
m_strMsg.Empty ();
UpdateData(false);
}
else
{
AfxMessageBox(_T("发送操作失败!"),MB_OK|MB_ICONSTOP);
return;
}
}