-
大小: 7.39MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-11-02
- 語言: C/C++
- 標簽:
資源簡介
基于MFC編程,使用TCP/IP模型編寫。可以安全,可靠地局域網多人聊天

代碼片段和文件信息
//?ChatRoomServer.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ChatRoomServer.h“
#include?“ChatRoomServerDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChatRoomServerApp
BEGIN_MESSAGE_MAP(CChatRoomServerApp?CWinApp)
//{{AFX_MSG_MAP(CChatRoomServerApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CChatRoomServerApp?construction
CChatRoomServerApp::CChatRoomServerApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChatRoomServerApp?object
CChatRoomServerApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChatRoomServerApp?initialization
BOOL?CChatRoomServerApp::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
CChatRoomServerDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????23460??2016-03-22?15:30??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.aps
?????文件???????2467??2008-05-25?12:29??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.cpp
?????文件???????4572??2008-05-25?12:48??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.dsp
?????文件????????551??2002-04-09?11:51??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.dsw
?????文件???????1412??2002-04-09?11:51??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.h
?????文件???10382336??2016-03-22?15:51??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.ncb
?????文件??????48640??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.opt
?????文件???????2534??2016-03-22?15:40??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.plg
?????文件???????6464??2008-05-25?11:12??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.rc
?????文件????????892??2016-03-22?15:29??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.sln
????..A..H.?????14848??2016-03-22?15:51??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.suo
?????文件???????8383??2016-03-22?15:31??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.vcproj
?????文件???????1427??2016-03-22?15:51??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClient.vcproj.PC-20160123ITFI.Administrator.user
?????文件???????5018??2008-05-25?12:48??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClientDlg.cpp
?????文件???????1586??2008-05-25?12:26??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ChatRoomClientDlg.h
?????文件???????1899??2016-03-22?15:31??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ConnectedDlg.cpp
?????文件???????1351??2016-03-22?15:31??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\ConnectedDlg.h
?????文件??????14976??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\BuildLog.htm
?????文件?????143360??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.exe
?????文件????????660??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.exe.em
?????文件????????724??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.exe.em
?????文件????????625??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.exe.intermediate.manifest
?????文件????1190188??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.ilk
?????文件??????26888??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.obj
?????文件???13893632??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.pch
?????文件????3533824??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.pdb
?????文件???????3076??2016-03-22?15:38??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClient.res
?????文件??????53609??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ChatRoomClientDlg.obj
?????文件??????28466??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\ConnectedDlg.obj
?????文件?????????65??2016-03-22?15:41??實例309——多人在線的網絡聊天室——客戶端\ChatRoomClient\Debug\mt.dep
............此處省略44個文件信息
- 上一篇:IEEE3機9節點模型
- 下一篇:mfc圖書管理系統
評論
共有 條評論