class CDSocket : public CSocket class CDASocket : public CAsyncSocket void CDASocket::OnReceive(int nErrorCode) { // TODO: Add your specialized code here and/or call the base char buff[256]; int ret=0; ret=Receive(buff,256); if(ret==ERROR) { TRACE("ERROR!"); } else m_pDoc->Presscessding(buff); class CAsyncSocket::OnReceive(nErrorCode); }