資源簡介
分布式溫控系統程序代碼 VC++ 軟件設計 winsock

代碼片段和文件信息
//?ChatClient.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ChatClient.h“
#include?“ChatClientDlg.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)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?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()
{
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
CChatClientDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3069??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.clw
?????文件???????2171??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.cpp
?????文件???????4452??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.dsp
?????文件????????539??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.dsw
?????文件???????1335??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.h
?????文件?????304128??2010-07-19?17:45??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.ncb
?????文件???????1544??2010-07-19?17:44??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.plg
?????文件???????9471??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvr.rc
?????文件??????18972??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvrDlg.cpp
?????文件???????2052??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ChatSvrDlg.h
?????文件???????1139??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ClientSocket.cpp
?????文件???????1312??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ClientSocket.h
?????文件???????1077??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ListeningSocket.cpp
?????文件???????1303??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ListeningSocket.h
?????文件???????3597??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\ReadMe.txt
?????文件???????1648??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\resource.h
?????文件????????209??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\StdAfx.cpp
?????文件???????1102??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\StdAfx.h
?????文件???????1078??2010-07-19?16:48??分布式溫控系統程序代碼\驗收版\服務器\res\ChatSvr.ico
?????文件????????399??2010-07-19?16:48??分布式溫控系統程序代碼\驗收版\服務器\res\ChatSvr.rc2
?????文件?????118840??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\Debug\ChatSvr.exe
?????文件?????283348??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\Debug\ChatSvr.ilk
?????文件??????16585??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\Debug\ChatSvr.obj
?????文件??????43520??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\Debug\ChatSvr.opt
?????文件????5583348??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\Debug\ChatSvr.pch
?????文件?????435200??2010-07-19?16:47??分布式溫控系統程序代碼\驗收版\服務器\Debug\ChatSvr.pdb
?????文件??????57048??2010-07-19?16:48??分布式溫控系統程序代碼\驗收版\服務器\Debug\ChatSvrDlg.obj
?????文件???????7804??2010-07-19?16:48??分布式溫控系統程序代碼\驗收版\服務器\Debug\ClientSocket.obj
?????文件???????7244??2010-07-19?16:48??分布式溫控系統程序代碼\驗收版\服務器\Debug\ListeningSocket.obj
?????文件?????106778??2010-07-19?16:48??分布式溫控系統程序代碼\驗收版\服務器\Debug\StdAfx.obj
............此處省略59個文件信息
評論
共有 條評論