資源簡(jiǎn)介
在vc6.0下開(kāi)發(fā)的一個(gè)多人聊天室程序,里面有源碼、文檔。可用于課設(shè)和自己學(xué)習(xí)。
希望對(duì)大家在幫助!!!

代碼片段和文件信息
//?Client3.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Client3.h“
#include?“Client3Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CClient3App
BEGIN_MESSAGE_MAP(CClient3App?CWinApp)
//{{AFX_MSG_MAP(CClient3App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CClient3App?construction
CClient3App::CClient3App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClient3App?object
CClient3App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CClient3App?initialization
BOOL?CClient3App::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
CClient3Dlg?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-06-03?10:13??聊天室程序\
?????目錄???????????0??2012-06-03?10:14??聊天室程序\Client3\
?????文件???????21596??2012-04-09?12:54??聊天室程序\Client3\Client3.aps
?????文件????????1671??2012-04-09?13:06??聊天室程序\Client3\Client3.clw
?????文件????????2171??2012-04-07?17:02??聊天室程序\Client3\Client3.cpp
?????文件????????4181??2012-04-07?17:02??聊天室程序\Client3\Client3.dsp
?????文件?????????539??2012-04-07?17:02??聊天室程序\Client3\Client3.dsw
?????文件????????1335??2012-04-07?17:02??聊天室程序\Client3\Client3.h
?????文件???????91136??2012-04-09?13:14??聊天室程序\Client3\Client3.ncb
?????文件???????49664??2012-04-09?13:14??聊天室程序\Client3\Client3.opt
?????文件?????????248??2012-04-09?13:14??聊天室程序\Client3\Client3.plg
?????文件????????6237??2012-04-08?18:14??聊天室程序\Client3\Client3.rc
?????文件???????14013??2012-04-08?18:21??聊天室程序\Client3\Client3Dlg.cpp
?????文件????????1690??2012-04-08?17:50??聊天室程序\Client3\Client3Dlg.h
?????文件????????3597??2012-04-07?17:02??聊天室程序\Client3\ReadMe.txt
?????目錄???????????0??2012-04-09?12:52??聊天室程序\Client3\res\
?????文件????????1144??2012-04-07?17:02??聊天室程序\Client3\resource.h
?????文件????????1078??2012-04-07?17:02??聊天室程序\Client3\res\Client3.ico
?????文件?????????399??2012-04-07?17:02??聊天室程序\Client3\res\Client3.rc2
?????文件?????????209??2012-04-07?17:02??聊天室程序\Client3\StdAfx.cpp
?????文件????????1102??2012-04-07?17:02??聊天室程序\Client3\StdAfx.h
?????文件??????387777??2012-04-09?13:01??聊天室程序\meinv.jpg
?????目錄???????????0??2012-06-03?10:15??聊天室程序\Server3\
?????文件?????????963??2012-04-07?16:58??聊天室程序\Server3\MyList.cpp
?????文件?????????896??2012-04-07?16:58??聊天室程序\Server3\MyList.h
?????文件????????3597??2012-04-07?16:58??聊天室程序\Server3\ReadMe.txt
?????目錄???????????0??2012-04-09?12:52??聊天室程序\Server3\res\
?????文件????????1144??2012-04-08?18:14??聊天室程序\Server3\resource.h
?????文件????????1078??2012-04-07?16:58??聊天室程序\Server3\res\Server3.ico
?????文件?????????399??2012-04-07?16:58??聊天室程序\Server3\res\Server3.rc2
?????文件???????21376??2012-04-09?12:53??聊天室程序\Server3\Server3.aps
............此處省略14個(gè)文件信息
評(píng)論
共有 條評(píng)論