资源简介
VC编写的简单聊天程序

代码片段和文件信息
// Info.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Info.h“
#include “InfoDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CInfoApp
BEGIN_MESSAGE_MAP(CInfoApp CWinApp)
//{{AFX_MSG_MAP(CInfoApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CInfoApp construction
CInfoApp::CInfoApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CInfoApp object
CInfoApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CInfoApp initialization
BOOL CInfoApp::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
CInfoDlg dlg;
m_pMainWnd = &dlg;
CString str;
eee=OpenMutex(MUTEX_ALL_ACCESSfalsestr);
if(eee==NULL)
{
eee=CreateMutex(NULLtruestr);
m=TRUE;
}
else
{
m=FALSE;
}
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;
}
int CInfoApp::ExitInstance()
{
if(eee !=NULL)
ReleaseMutex(eee);
return CWinApp::ExitInstance();
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3543 2004-07-11 13:27 VC编写的简单聊天程序\7-聊天软件\ReadMe.txt
文件 1371 2004-07-11 13:27 VC编写的简单聊天程序\7-聊天软件\Info.h
文件 1541 2004-07-11 13:27 VC编写的简单聊天程序\7-聊天软件\MySocket.cpp
文件 1382 2004-07-11 13:27 VC编写的简单聊天程序\7-聊天软件\MySocket.h
文件 1102 2004-07-11 13:27 VC编写的简单聊天程序\7-聊天软件\StdAfx.h
文件 206 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\StdAfx.cpp
文件 531 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\Info.dsw
文件 938 2005-12-14 14:01 VC编写的简单聊天程序\7-聊天软件\Info.plg
文件 2431 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\Info.cpp
文件 2101 2004-08-22 00:46 VC编写的简单聊天程序\7-聊天软件\Resource.h
文件 2795 2004-08-22 00:52 VC编写的简单聊天程序\7-聊天软件\InfoDlg.h
文件 851312 2005-12-14 13:59 VC编写的简单聊天程序\7-聊天软件\Info.aps
文件 7692 2004-08-22 00:55 VC编写的简单聊天程序\7-聊天软件\Info.rc
文件 3699 2004-08-22 00:56 VC编写的简单聊天程序\7-聊天软件\Info.dsp
文件 2292 2005-12-14 14:01 VC编写的简单聊天程序\7-聊天软件\Info.clw
文件 4152 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\85.bmp
文件 4152 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\49.bmp
文件 6656 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\Thumbs.db
文件 11776 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\135.avi
文件 37494 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\ti
文件 30414 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\about.bmp
文件 193194 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\beijing.bmp
文件 29718 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\bitmap3.bmp
文件 553302 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\eee.bmp
文件 653 2004-08-22 00:46 VC编写的简单聊天程序\7-聊天软件\res\xptheme.bin
文件 396 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\Info.rc2
文件 1078 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\Info.ico
文件 1078 2004-07-11 13:28 VC编写的简单聊天程序\7-聊天软件\res\HOUSE.ICO
目录 0 2004-09-27 22:17 VC编写的简单聊天程序\7-聊天软件\res
文件 50176 2005-12-14 14:01 VC编写的简单聊天程序\7-聊天软件\Info.ncb
............此处省略12个文件信息
相关资源
- VisualStudioUninstaller vs卸载工具
- 组态王驱动开发包3.0.0.7(中文)
- 多窗口后台鼠标连点器
- 使用选择性重传协议实现UDP可靠通信
- VC 获得文件属性 获取文件的创建时
- 读者写者问题(读者优先,写者优先
- 用VC 编写的仿QQ聊天室程序源代码
- 外点法程序
- 外罚函数程序
- qt-电子点菜系统
- 推箱子及人工智能寻路C 源代码
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- MUSIC算法c 实现
- C 餐厅叫号系统(QT平)
- 国际象棋c 完整版
-
ob
jectARX给Auto CAD加工具条 - 画图程序MFC/VC/VC CRectTracker 串行化
- MFC网络编程实例
- c 课程设计 职工信息管理系统
- VC 游戏编程—附源代码
- IpHlpApi.h&IpHlpApi.lib
- 清华大学 c 郑莉 ppt课件
- c 程序判断离散数学中命题公式
- 多项式求和(数据结构C 版)
- vc 6.0开发的流程图编辑器
- VC 天空盒(skyBox)实现(附源代码)
- c MFC 画多边形
- 用C 实现的对网络上的ARP数据包进行
- Microsoft基本类库 (MFC)(C 库)
评论
共有 条评论