ChatSocket.cpp
资源名称:VC6.0.rar [点击查看]
上传用户:qdhmjx
上传日期:2022-07-11
资源大小:2226k
文件大小:1k
源码类别:
书籍源码
开发平台:
Visual C++
- // ChatSocket.cpp : implementation file
- //
- #include "stdafx.h"
- #include "ex126Client.h"
- #include "ChatSocket.h"
- #include "ex126ClientDlg.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CChatSocket
- CChatSocket::CChatSocket()
- {
- }
- CChatSocket::~CChatSocket()
- {
- }
- // Do not edit the following lines, which are needed by ClassWizard.
- #if 0
- BEGIN_MESSAGE_MAP(CChatSocket, CSocket)
- //{{AFX_MSG_MAP(CChatSocket)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- #endif // 0
- /////////////////////////////////////////////////////////////////////////////
- // CChatSocket member functions
- CChatSocket::CChatSocket(CEx126ClientDlg *pDlg)
- {
- m_pDlg=pDlg;
- }
- void CChatSocket::OnReceive(int nErrorCode)
- {
- CSocket::OnReceive(nErrorCode);
- //让主对话框处理数据
- if(m_pDlg)
- m_pDlg->ProcessPendingRead();
- }