-
大小: 61KB文件類型: .rar金幣: 2下載: 0 次發(fā)布日期: 2021-05-06
- 語(yǔ)言: C/C++
- 標(biāo)簽: mfc聊天室??課程設(shè)計(jì)??
資源簡(jiǎn)介
合肥工業(yè)大學(xué)計(jì)算機(jī)網(wǎng)絡(luò)課程課程設(shè)計(jì)題目1.3,廣播通信設(shè)計(jì),VC6.0,MFC設(shè)計(jì),歡迎大家參考。相關(guān)設(shè)計(jì)報(bào)告文檔見百度文庫(kù)

代碼片段和文件信息
//?Client.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Client.h“
#include?“ClientDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CClientApp
BEGIN_MESSAGE_MAP(CClientApp?CWinApp)
//{{AFX_MSG_MAP(CClientApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CClientApp?construction
CClientApp::CClientApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CClientApp?object
CClientApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CClientApp?initialization
BOOL?CClientApp::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
CClientDlg?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í)間???名稱
-----------?---------??----------?-----??----
?????文件???????1346??2014-01-04?11:41??Server\ClientSocket.cpp
?????文件???????1386??2014-01-05?10:18??Server\ClientSocket.h
?????文件???????2415??2014-01-05?23:33??Server\ClientSocketList.cpp
?????文件????????806??2014-01-04?11:25??Server\ClientSocketList.h
?????文件???????3579??2014-01-03?00:00??Server\ReadMe.txt
?????文件???????1078??2014-01-03?00:00??Server\res\Server.ico
?????文件????????398??2014-01-03?00:00??Server\res\Server.rc2
?????文件????????822??2014-01-05?10:10??Server\resource.h
?????文件??????20856??2014-01-05?22:32??Server\Server.aps
?????文件???????1311??2014-01-05?23:36??Server\Server.clw
?????文件???????2045??2014-01-04?11:01??Server\Server.cpp
?????文件???????4440??2014-01-04?11:05??Server\Server.dsp
?????文件????????520??2014-01-03?00:00??Server\Server.dsw
?????文件???????1377??2014-01-04?10:58??Server\Server.h
?????文件??????49664??2014-01-05?23:36??Server\Server.opt
?????文件???????2069??2014-01-05?23:34??Server\Server.plg
?????文件???????5377??2014-01-05?10:11??Server\Server.rc
?????文件???????6201??2014-01-05?23:31??Server\ServerDlg.cpp
?????文件???????1571??2014-01-05?10:10??Server\ServerDlg.h
?????文件????????202??2014-01-03?12:50??Server\StdAfx.cpp
?????文件???????1075??2014-01-04?11:16??Server\StdAfx.h
?????文件??????21180??2014-01-05?22:32??Client\Client.aps
?????文件???????1557??2014-01-05?23:36??Client\Client.clw
?????文件???????2061??2014-01-05?09:15??Client\Client.cpp
?????文件???????4295??2014-01-02?23:53??Client\Client.dsp
?????文件????????520??2014-01-02?20:07??Client\Client.dsw
?????文件???????1324??2014-01-02?20:07??Client\Client.h
?????文件??????49664??2014-01-05?23:36??Client\Client.opt
?????文件???????1771??2014-01-05?23:34??Client\Client.plg
?????文件???????5720??2014-01-05?09:48??Client\Client.rc
............此處省略21個(gè)文件信息
評(píng)論
共有 條評(píng)論