资源简介
这是一个聊天室程序,是vc课程设计中的经典案例!我的课程设计作品。
代码片段和文件信息
// 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
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;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 114776 2008-03-10 08:15 乔秀明060420122\exe文件\chat.exe
文件 110693 2008-03-12 19:57 乔秀明060420122\exe文件\chatserver.exe
文件 22144 2008-03-13 09:56 乔秀明060420122\源程序\客户端\chat.aps
文件 1732 2008-03-16 10:10 乔秀明060420122\源程序\客户端\chat.clw
文件 2129 2005-05-10 10:15 乔秀明060420122\源程序\客户端\chat.cpp
文件 4246 2007-08-20 15:21 乔秀明060420122\源程序\客户端\chat.dsp
文件 533 2005-05-10 12:02 乔秀明060420122\源程序\客户端\chat.dsw
文件 1302 2005-05-10 10:13 乔秀明060420122\源程序\客户端\chat.h
文件 148480 2008-03-16 10:17 乔秀明060420122\源程序\客户端\chat.ncb
文件 51712 2008-03-16 10:17 乔秀明060420122\源程序\客户端\chat.opt
文件 1186 2008-03-10 08:15 乔秀明060420122\源程序\客户端\chat.plg
文件 6733 2008-03-07 18:13 乔秀明060420122\源程序\客户端\chat.rc
文件 7506 2008-03-10 08:14 乔秀明060420122\源程序\客户端\chatDlg.cpp
文件 1802 2008-03-07 12:32 乔秀明060420122\源程序\客户端\chatDlg.h
文件 114776 2008-03-10 08:15 乔秀明060420122\源程序\客户端\Debug\chat.exe
文件 15465 2008-03-10 08:06 乔秀明060420122\源程序\客户端\Debug\chat.obj
文件 418816 2008-03-10 08:15 乔秀明060420122\源程序\客户端\Debug\chat.pdb
文件 3056 2008-03-07 18:43 乔秀明060420122\源程序\客户端\Debug\chat.res
文件 0 2008-03-10 08:06 乔秀明060420122\源程序\客户端\Debug\chat.sbr
文件 44456 2008-03-10 08:15 乔秀明060420122\源程序\客户端\Debug\chatDlg.obj
文件 0 2008-03-10 08:15 乔秀明060420122\源程序\客户端\Debug\chatDlg.sbr
文件 14592 2008-03-10 08:06 乔秀明060420122\源程序\客户端\Debug\login.obj
文件 0 2008-03-10 08:06 乔秀明060420122\源程序\客户端\Debug\login.sbr
文件 106827 2008-03-10 08:06 乔秀明060420122\源程序\客户端\Debug\StdAfx.obj
文件 1391570 2008-03-10 08:06 乔秀明060420122\源程序\客户端\Debug\StdAfx.sbr
文件 372736 2008-03-10 08:15 乔秀明060420122\源程序\客户端\Debug\vc60.pdb
文件 1416 2008-03-07 18:33 乔秀明060420122\源程序\客户端\login.cpp
文件 1146 2005-05-10 11:42 乔秀明060420122\源程序\客户端\login.h
文件 1078 2008-03-07 18:11 乔秀明060420122\源程序\客户端\res\chat.ico
文件 396 2005-05-10 10:13 乔秀明060420122\源程序\客户端\res\chat.rc2
............此处省略47个文件信息
- 上一篇:Socket编写的一个基于MFC的聊天程序源代码。
- 下一篇:MFC函数库手册
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- MFC数字钟(基于VC6.0)
- 安科瑞智能电能表MODBUS通讯程序 VC6
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC6LineNumberAddin.dll
- 用VC6.0实现多边形扫描线填充算法
- VC++实现CMD命令执行与获得返回信息
- VC助手 VC6.0助手
- VC++基于OpenGL模拟的一个3维空间模型
- 基于VC++的SolidWorks二次开发SolidWorks
- VC6 USB开发源码
- VC操作SQLSERVER数据库
- aes加解密(vc源程序)
- vc_串口通讯
- 吕鑫vc6c++数据结构视频源码
- 派克变换VC++源码(附文档)
- 基于opencv漫水填充算法综合
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- MFC的异步网络通讯应用程序
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- VC编程助手2010破解版(原名VA_X_10.6.
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
川公网安备 51152502000135号
评论
共有 条评论