-
大小: 7.15MB文件類(lèi)型: .rar金幣: 2下載: 0 次發(fā)布日期: 2023-09-26
- 語(yǔ)言: C/C++
- 標(biāo)簽:
資源簡(jiǎn)介
本程序使用MFC 實(shí)現(xiàn)了一個(gè)聊天工具,他分兩部分,一部分是客戶(hù)端程序,一部分是服務(wù)器程序,只要客戶(hù)端登陸以后就能和已經(jīng)在線的人進(jìn)行私聊天,也可以選擇讓所有的在線客戶(hù)看你的聊天內(nèi)容。

代碼片段和文件信息
//?ChatClient.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ChatClient.h“
#include?“MainFrm.h“
#include?“ChatClientDoc.h“
#include?“ChatClientView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChatClientApp
BEGIN_MESSAGE_MAP(CChatClientApp?CWinApp)
//{{AFX_MSG_MAP(CChatClientApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChatClientApp?construction
CChatClientApp::CChatClientApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CChatClientApp?object
CChatClientApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CChatClientApp?initialization
BOOL?CChatClientApp::InitInstance()
{
//?CG:?The?following?block?was?added?by?the?Windows?Sockets?component.
{
if?(!AfxSocketInit())
{
AfxMessageBox(CG_IDS_SOCKETS_INIT_FAILED);
return?FALSE;
}
}
//?Initialize?OLE?libraries
if?(!AfxOleInit())
{
AfxMessageBox(IDP_OLE_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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CChatClientDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CChatClientView));
pDocTemplate->SetContainerInfo(IDR_CNTR_INPLACE);
AddDocTemplate(pD
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????文件??????59712??2009-04-17?17:45??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.aps
?????文件???????4876??2009-04-30?09:59??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.clw
?????文件???????4659??2001-07-17?17:20??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.cpp
?????文件???????5506??2009-04-17?23:08??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.dsp
?????文件????????543??2001-07-17?17:20??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.dsw
?????文件???????1400??2001-07-17?17:20??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.h
?????文件?????222208??2009-04-30?09:59??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.ncb
?????文件??????72704??2009-04-30?09:59??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.opt
?????文件???????1473??2009-04-23?14:39??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.plg
?????文件??????21685??2009-04-17?17:45??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClient.rc
?????文件???????8456??2009-04-22?11:06??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClientDoc.cpp
?????文件???????2205??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClientDoc.h
?????文件???????5263??2009-04-23?14:39??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClientView.cpp
?????文件???????2041??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatClientView.h
?????文件????????779??2009-04-22?11:49??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatSocket.cpp
?????文件????????700??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\ChatSocket.h
?????文件???????1167??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\CntrItem.cpp
?????文件???????1606??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\CntrItem.h
?????文件???????1068??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\Login.cpp
?????文件???????1220??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\Login.h
?????文件???????4312??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\MainFrm.cpp
?????文件???????1830??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\MainFrm.h
?????文件???????1589??2009-04-21?15:20??QQ聊天工具實(shí)現(xiàn)\ChatClient\Message.cpp
?????文件????????850??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\Message.h
?????文件???????1817??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\OnlineBar.cpp
?????文件????????989??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\OnlineBar.h
?????文件???????2221??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\OnlineList.cpp
?????文件???????1346??2001-07-17?17:21??QQ聊天工具實(shí)現(xiàn)\ChatClient\OnlineList.h
?????文件????4817920??2009-04-23?14:39??QQ聊天工具實(shí)現(xiàn)\ChatClient\Release\ChatClient.bsc
?????文件??????53248??2009-04-23?14:39??QQ聊天工具實(shí)現(xiàn)\ChatClient\Release\ChatClient.exe
............此處省略110個(gè)文件信息
評(píng)論
共有 條評(píng)論