MFC局域网即时聊天系统


MFC局域网即时聊天系统,实现群聊与客户单对单单对多的聊天。
资源截图
代码片段和文件信息
// ChatSocket.cpp : implementation file
//

#include “stdafx.h“
#include “client.h“
#include “ChatSocket.h“
#include “ClientDlg.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(CClientDlg *pDlg)
{
m_pDlg=pDlg;

}

void CChatSocket::OnReceive(int nErrorCode) 
{
// TODO: Add your specialized code here and/or call the base class

CSocket::OnReceive(nErrorCode);
if(m_pDlg)
m_pDlg->ProcessPendingRead();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-03-14 11:04  socket通信 V3.2
     目录           0  2012-03-14 18:54  socket通信 V3.2client
     文件       30738  2012-03-14 17:03  socket通信 V3.2clientAero.she
     文件        7918  2009-02-27 07:12  socket通信 V3.2clientasus.she
     文件        1003  2008-03-06 17:45  socket通信 V3.2clientChatSocket.cpp
     文件        3447  2012-03-06 10:05  socket通信 V3.2clientChatSocket.dsp
     文件         528  2012-03-06 10:05  socket通信 V3.2clientChatSocket.dsw
     文件        1255  2008-03-06 15:21  socket通信 V3.2clientChatSocket.h
     文件       41984  2012-03-13 20:31  socket通信 V3.2clientChatSocket.ncb
     文件       48640  2012-03-13 20:31  socket通信 V3.2clientChatSocket.opt
     文件         254  2012-03-06 10:05  socket通信 V3.2clientChatSocket.plg
     文件       22636  2012-03-14 18:43  socket通信 V3.2clientclient.aps
     文件        2135  2012-03-14 18:53  socket通信 V3.2clientclient.clw
     文件        2157  2008-03-06 14:52  socket通信 V3.2clientclient.cpp
     文件        4488  2012-03-13 23:30  socket通信 V3.2clientclient.dsp
     文件         537  2008-03-06 14:52  socket通信 V3.2clientclient.dsw
     文件        1324  2008-03-06 14:52  socket通信 V3.2clientclient.h
     文件      197632  2012-03-14 18:54  socket通信 V3.2clientclient.ncb
     文件           0  2012-03-06 09:28  socket通信 V3.2clientclient.ncb (Can‘t open)
     文件       55808  2012-03-14 18:54  socket通信 V3.2clientclient.opt
     文件         246  2012-03-14 18:53  socket通信 V3.2clientclient.plg
     文件        6832  2012-03-14 17:07  socket通信 V3.2clientclient.rc
     文件        8175  2012-03-14 18:45  socket通信 V3.2clientclientDlg.cpp
     文件        1774  2012-03-14 16:52  socket通信 V3.2clientclientDlg.h
     目录           0  2012-03-17 08:56  socket通信 V3.2clientDebug
     文件        7325  2012-03-14 17:38  socket通信 V3.2clientDebugChatSocket.obj
     文件           0  2012-03-14 17:38  socket通信 V3.2clientDebugChatSocket.sbr
     文件     5211136  2012-03-14 18:45  socket通信 V3.2clientDebugclient.bsc
     文件      122957  2012-03-14 18:45  socket通信 V3.2clientDebugclient.exe
     文件      287968  2012-03-14 18:45  socket通信 V3.2clientDebugclient.ilk
     文件       30026  2012-03-14 17:38  socket通信 V3.2clientDebugclient.obj
............此处省略83个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)