資源簡介
基于winsock的聊天室程序,屬于網絡編程。希望對學網絡編程的人有好處。

代碼片段和文件信息
//?ClientDlg.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ClientDlg.h“
#include?“ClientDlgDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CClientDlgApp
BEGIN_MESSAGE_MAP(CClientDlgApp?CWinApp)
//{{AFX_MSG_MAP(CClientDlgApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CClientDlgApp?construction
CClientDlgApp::CClientDlgApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClientDlgApp?object
CClientDlgApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CClientDlgApp?initialization
BOOL?CClientDlgApp::InitInstance()
{
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
CClientDlgDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1119??2009-04-14?21:54??聊天室\ServerDlg\ServerDlg.clw
?????文件???????3633??2009-04-04?20:23??聊天室\ServerDlg\ReadMe.txt
?????文件???????1357??2009-04-04?20:23??聊天室\ServerDlg\ServerDlg.h
?????文件???????2105??2009-04-04?20:23??聊天室\ServerDlg\ServerDlg.cpp
?????文件????????211??2009-04-04?20:23??聊天室\ServerDlg\StdAfx.cpp
?????文件????????401??2009-04-04?20:23??聊天室\ServerDlg\res\ServerDlg.rc2
?????文件???????1078??2009-04-04?20:23??聊天室\ServerDlg\res\ServerDlg.ico
?????目錄??????????0??2009-04-04?20:23??聊天室\ServerDlg\res
?????文件???????4213??2009-04-04?20:23??聊天室\ServerDlg\ServerDlg.dsp
?????文件????????526??2009-04-04?20:23??聊天室\ServerDlg\ServerDlg.dsw
?????文件??????58368??2009-05-19?20:53??聊天室\ServerDlg\ServerDlg.ncb
?????文件???????2516??2009-04-04?21:31??聊天室\ServerDlg\Debug\ServerDlg.res
?????文件?????214016??2009-04-14?21:48??聊天室\ServerDlg\Debug\vc60.idb
?????文件????5573824??2009-04-04?20:29??聊天室\ServerDlg\Debug\ServerDlg.pch
?????文件?????364544??2009-04-04?21:33??聊天室\ServerDlg\Debug\vc60.pdb
?????文件?????106455??2009-04-04?20:29??聊天室\ServerDlg\Debug\StdAfx.obj
?????文件??????13024??2009-04-04?21:31??聊天室\ServerDlg\Debug\ServerDlg.obj
?????文件?????106556??2009-04-04?21:33??聊天室\ServerDlg\Debug\ServerDlg.exe
?????文件?????377856??2009-04-04?21:33??聊天室\ServerDlg\Debug\ServerDlg.pdb
?????文件?????225708??2009-04-04?21:33??聊天室\ServerDlg\Debug\ServerDlg.ilk
?????文件??????27988??2009-04-04?21:33??聊天室\ServerDlg\Debug\ServerDlgDlg.obj
?????目錄??????????0??2009-04-04?20:23??聊天室\ServerDlg\Debug
?????文件???????1074??2009-04-04?20:29??聊天室\ServerDlg\StdAfx.h
?????文件????????252??2009-04-04?21:33??聊天室\ServerDlg\ServerDlg.plg
?????文件???????1461??2009-04-04?21:17??聊天室\ServerDlg\ServerDlgDlg.h
?????文件????????733??2009-04-04?21:31??聊天室\ServerDlg\Resource.h
?????文件??????20724??2009-04-14?21:48??聊天室\ServerDlg\ServerDlg.aps
?????文件???????5222??2009-04-04?21:31??聊天室\ServerDlg\ServerDlg.rc
?????文件???????6144??2009-04-04?21:33??聊天室\ServerDlg\ServerDlgDlg.cpp
?????文件??????49664??2009-05-19?20:53??聊天室\ServerDlg\ServerDlg.opt
............此處省略36個文件信息
- 上一篇:數據結構嚴蔚敏算法源碼及演示系統.rar
- 下一篇:haze-tool補丁.zip
評論
共有 條評論