基于P2P的局域网即时通信系统VC


建立一个局域网内的简单的P2P消息系统,程序既是服务器又是客户端 用户界面:界面上包括对等方列表;消息显示列表;消息输入框;文件传输进程显示及操作按钮或菜单
资源截图
代码片段和文件信息
// Chat.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “Chat.h“
#include “ChatDlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CChatApp

BEGIN_MESSAGE_MAP(CChatApp CWinApp)
//{{AFX_MSG_MAP(CChatApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CChatApp construction

CChatApp::CChatApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CChatApp object

CChatApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CChatApp initialization

BOOL CChatApp::InitInstance()
{
if (!AfxSocketInit())
{
AfxMessageBox(IDP_SOCKETS_INIT_FAILED);
return FALSE;
}

AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
CWinApp::SetDialogBkColor(RGB(210255180)RGB(00255));
CChatDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-14 11:54  VC6.0基于P2P的局域网即时通信系统
     文件      147542  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat.exe
     目录           0  2019-01-14 11:53  VC6.0基于P2P的局域网即时通信系统Chat0222C
     目录           0  2019-01-14 11:54  VC6.0基于P2P的局域网即时通信系统Chat0222CBackup
     文件       26060  2019-01-06 19:30  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.aps
     文件        3472  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.clw
     文件        2187  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.cpp
     文件        4982  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.dsp
     文件         516  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.dsw
     文件        1302  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.h
     文件      377856  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.ncb
     文件       56832  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.opt
     文件        1271  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.plg
     文件        8727  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.rc
     文件    72024064  2019-01-14 11:53  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.sdf
     文件         953  2019-01-06 19:01  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.sln
     文件       20480  2019-01-14 11:53  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.v12.suo
     文件        8417  2019-01-06 19:02  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.vcxproj
     文件        3072  2019-01-06 19:02  VC6.0基于P2P的局域网即时通信系统Chat0222CChat.vcxproj.filters
     文件       13105  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChatDlg.cpp
     文件        1924  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CChatDlg.h
     文件        4665  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CCtrlSocket.cpp
     文件        1281  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CCtrlSocket.h
     目录           0  2019-01-14 11:52  VC6.0基于P2P的局域网即时通信系统Chat0222CDebug
     文件        5257  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CDebugAPPMODUL.obj
     文件      154112  2019-01-14 11:52  VC6.0基于P2P的局域网即时通信系统Chat0222CDebugChat.exe
     文件     1571568  2019-01-14 11:52  VC6.0基于P2P的局域网即时通信系统Chat0222CDebugChat.ilk
     文件        7407  2019-01-14 11:52  VC6.0基于P2P的局域网即时通信系统Chat0222CDebugChat.log
     文件       28216  2019-01-14 11:52  VC6.0基于P2P的局域网即时通信系统Chat0222CDebugChat.obj
     文件       43520  2010-02-25 14:45  VC6.0基于P2P的局域网即时通信系统Chat0222CDebugChat.opt
     文件    29294592  2019-01-14 11:52  VC6.0基于P2P的局域网即时通信系统Chat0222CDebugChat.pch
............此处省略54个文件信息

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

发表评论

评论列表(条)