资源简介
直接编译过,可以直接运行!分为客服端和服务器端,资源绝对没问题,请大家放心下载..
代码片段和文件信息
// ChatRoomClient.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “ChatRoomClient.h“
#include “ChatRoomClientDlg.h“
#include “ConnectedDlg.h“
#include “ClientSocket.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CClientSocket curSocket;
/////////////////////////////////////////////////////////////////////////////
// CChatRoomClientApp
BEGIN_MESSAGE_MAP(CChatRoomClientApp CWinApp)
//{{AFX_MSG_MAP(CChatRoomClientApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CChatRoomClientApp construction
CChatRoomClientApp::CChatRoomClientApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CChatRoomClientApp object
CChatRoomClientApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CChatRoomClientApp initialization
BOOL CChatRoomClientApp::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
CConnectedDlg cdlg(&curSocket);
if (cdlg.DoModal()==IDCANCEL) return FALSE;
CChatRoomClientDlg dlg(&curSocket);
m_pMainWnd = &dlg;
curSocket.SetDlg(&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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 22160 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.aps
文件 2059 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.clw
文件 2463 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.cpp
文件 4572 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.dsp
文件 551 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.dsw
文件 1412 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.h
文件 82944 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.ncb
文件 142848 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.opt
文件 2273 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.plg
文件 6303 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClient.rc
文件 5216 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClientDlg.cpp
文件 1653 2009-12-27 17:13 ChatRoom\ChatRoomClient\ChatRoomClientDlg.h
文件 1059 2009-12-27 17:13 ChatRoom\ChatRoomClient\ClientSocket.cpp
文件 1337 2009-12-27 17:13 ChatRoom\ChatRoomClient\ClientSocket.h
文件 1840 2009-12-27 17:13 ChatRoom\ChatRoomClient\ConnectedDlg.cpp
文件 1344 2009-12-27 17:13 ChatRoom\ChatRoomClient\ConnectedDlg.h
文件 114798 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ChatRoomClient.exe
文件 234972 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ChatRoomClient.ilk
文件 19287 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ChatRoomClient.obj
文件 5581016 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ChatRoomClient.pch
文件 304128 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ChatRoomClient.pdb
文件 3012 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ChatRoomClient.res
文件 30382 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ChatRoomClientDlg.obj
文件 9367 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ClientSocket.obj
文件 16158 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\ConnectedDlg.obj
文件 106881 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\StdAfx.obj
文件 214016 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\vc60.idb
文件 364544 2009-12-27 17:13 ChatRoom\ChatRoomClient\Debug\vc60.pdb
文件 3723 2009-12-27 17:13 ChatRoom\ChatRoomClient\ReadMe.txt
文件 1078 2009-12-27 17:13 ChatRoom\ChatRoomClient\res\ChatRoomClient.ico
............此处省略51个文件信息
- 上一篇:施耐德触摸屏界面使用手册实践版
- 下一篇:LTE的系统级仿真平台
相关资源
- VC++开发的仓库管理系统设计文档和
- 运动车辆检测跟踪系统vc源码opencv
- windows MSVCP100
- 用VC2010编写的基于TCPIP的Modbus网络通讯
- Elecard HEVC Analyzer v1.14
- 基于MVC的商城购物系统
- vcs UserGuide
- VC五子棋源代码 想要的速度下哦 多线
- 家庭财务管理系统SpringMVC3+Spring3+Myb
- MvcMovie.zip
- STM32F107VCT6 开发板原理图和PCB
- SM9算法测试VC项目源码
- vc13.rar
- MVC三层架构音乐网站源码
- win7 VCP虚拟串口驱动安装
- 微软的视频编码标准VC1wmv9标准文档
- qt vsaddin-msvc20152.2.0_53857
- 自动禁用USB口的VC程序
- 基于easyui的文档管理系统springmvc+myb
- vc学生管理系统 vc
- VC 获取系统信息CPU,内存,硬盘
- 一个复杂的电梯调度程序
- VC获取局域网中计算机名和IP地址
- rtsp 服务器代码,VC可编译使用,RTS
- VC编写的计算机联锁源码
- MVC开发的导入导出Excel文件
- vc界面库集总
- DevComponents DotNetBar 和DotNetBar2
- 变电站操作票系统
- 中国象棋和五子棋的算法讲解和vc源代
评论
共有 条评论