资源简介
1. 实现一个图形用户界面局域网内的消息系统。
2. 功能:建立一个局域网内的简单的P2P消息系统,程序既是服务器又是客户,服务器端口使用3333。

代码片段和文件信息
// 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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 147542 2010-02-25 14:45 计算机网络课程设计\Chat.exe
文件 39140 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.aps
文件 3472 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.clw
文件 2187 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.cpp
文件 4982 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.dsp
文件 516 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.dsw
文件 1302 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.h
文件 377856 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.ncb
文件 56832 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.opt
文件 1271 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.plg
文件 8727 2010-02-25 14:45 计算机网络课程设计\Chat0222C\Chat.rc
文件 13105 2010-02-25 14:45 计算机网络课程设计\Chat0222C\ChatDlg.cpp
文件 1924 2010-02-25 14:45 计算机网络课程设计\Chat0222C\ChatDlg.h
文件 4665 2010-02-25 14:45 计算机网络课程设计\Chat0222C\CtrlSocket.cpp
文件 1281 2010-02-25 14:45 计算机网络课程设计\Chat0222C\CtrlSocket.h
文件 771 2010-02-25 14:45 计算机网络课程设计\Chat0222C\FileDlg.cpp
文件 1050 2010-02-25 14:45 计算机网络课程设计\Chat0222C\FileDlg.h
文件 3803 2010-02-25 14:45 计算机网络课程设计\Chat0222C\FileSocket.cpp
文件 1375 2010-02-25 14:45 计算机网络课程设计\Chat0222C\FileSocket.h
文件 9072 2010-02-25 14:45 计算机网络课程设计\Chat0222C\PathDialog.cpp
文件 1919 2010-02-25 14:45 计算机网络课程设计\Chat0222C\PathDialog.h
文件 3543 2010-02-25 14:45 计算机网络课程设计\Chat0222C\ReadMe.txt
文件 1970 2010-02-25 14:45 计算机网络课程设计\Chat0222C\resource.h
文件 1791 2010-02-25 14:45 计算机网络课程设计\Chat0222C\SETDIR.cpp
文件 1262 2010-02-25 14:45 计算机网络课程设计\Chat0222C\SETDIR.h
文件 206 2010-02-25 14:45 计算机网络课程设计\Chat0222C\StdAfx.cpp
文件 1180 2010-02-25 14:45 计算机网络课程设计\Chat0222C\StdAfx.h
文件 5743 2010-02-25 14:45 计算机网络课程设计\Chat0222C\TalkSocket.cpp
文件 1300 2010-02-25 14:45 计算机网络课程设计\Chat0222C\TalkSocket.h
文件 71 2010-02-25 14:45 计算机网络课程设计\Chat0222C\说明.txt
............此处省略29个文件信息
- 上一篇:免费的BACnet测试工具
- 下一篇:LM358的24个典型应用电路
相关资源
- 04741计算机网络原理知识点整理.docx(
- 校园网络规划与设计课程设计
- SOCKET 网络编程 计算机网络 作业 客户
- 计算机网络课程设计—ARQ协议模拟实
- 计算机网络第五版 严伟
- 计算机网络(第6版)谢希仁教学课件
- 计算机网络自顶向下方法答案(第六
- 计算机网络管理员国家职业标准
- 计算机网络精讲视频教程
- 计算机网络 第7版 谢希仁 高清完美书
- 计算机网络(第5版)(Computer Networ
- 计算机网络课程设计 小型企业的
- 北航研究生计网实验报告.rar
- 计算机网络校园网课程设计
- 计算机网络24分游戏课设完整版
- 计算机网络(谢仁希第五版)课后答
- 计算机网络课程设计—设计一个校园
- 计算机网络第六版 教学视屏 网盘
- 计算机网络第7版谢希仁复习题完整版
- 计算机网络讲义-陈鸣
- 东北大学计算机网络期末试题+答案
- 计算机网络打作业实现QQ.zip
- 哈尔滨工业大学深圳 高级计算机网络
- 计算机网络(第七版).谢希仁
- 计算机网络socket编程实验
- 计算机网络谢仁希PPT教案
- 网络普及背景下的计算机网络安全问
- 2.5 SDNv2.pdf-中科大高级计算机网络课件
- 计算机网络课程设计: 基于P2P的局域
- 哈工大计网mooc答案,包含测验和期末
评论
共有 条评论