資源簡(jiǎn)介
vc++ 編程寶典(十年典藏版) 書后光盤源代碼,即MA文件夾全部?jī)?nèi)容
代碼片段和文件信息
//?Hello.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Hello.h“
#include?“HelloDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CHelloApp
BEGIN_MESSAGE_MAP(CHelloApp?CWinApp)
//{{AFX_MSG_MAP(CHelloApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CHelloApp?construction
CHelloApp::CHelloApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CHelloApp?object
CHelloApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CHelloApp?initialization
BOOL?CHelloApp::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
CHelloDlg?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í)間???名稱
-----------?---------??----------?-----??----
????......R??????1070??2010-06-03?18:03??MR\Instance\1\例1.1\Hello\Hello.clw
????......R??????2049??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\Hello.cpp
????......R??????4141??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\Hello.dsp
????......R???????533??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\Hello.dsw
????......R??????1313??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\Hello.h
????......R????656896??2010-06-03?18:03??MR\Instance\1\例1.1\Hello\Hello.opt
????......R??????5245??2010-03-05?11:46??MR\Instance\1\例1.1\Hello\Hello.rc
????......R???????332??2010-06-03?17:58??MR\Instance\1\例1.1\Hello\Hello.sln
????.....HR??????7168??2010-06-03?17:58??MR\Instance\1\例1.1\Hello\Hello.suo
????......R??????4329??2010-03-10?11:13??MR\Instance\1\例1.1\Hello\HelloDlg.cpp
????......R??????1354??2008-03-05?09:02??MR\Instance\1\例1.1\Hello\HelloDlg.h
????......R??????3561??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\ReadMe.txt
????......R???????532??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\Resource.h
????......R???????207??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\StdAfx.cpp
????......R??????1054??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\StdAfx.h
????......R??????1078??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\res\Hello.ico
????......R???????397??2008-03-04?19:31??MR\Instance\1\例1.1\Hello\res\Hello.rc2
????......R??????1212??2010-04-19?11:38??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenu.clw
????......R??????2217??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenu.cpp
????......R??????4357??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenu.dsp
????......R???????559??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenu.dsw
????......R??????1445??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenu.h
????......R????657920??2010-06-04?11:10??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenu.opt
????......R??????5073??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenu.rc
????......R??????4882??2010-04-19?11:31??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenuDlg.cpp
????......R??????1506??2010-04-19?11:26??MR\Instance\10\例10.1\DynamicCreateMenu\DynamicCreateMenuDlg.h
????......R??????3777??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\ReadMe.txt
????......R???????556??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\Resource.h
????......R???????219??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\StdAfx.cpp
????......R??????1054??2010-04-19?10:57??MR\Instance\10\例10.1\DynamicCreateMenu\StdAfx.h
............此處省略3288個(gè)文件信息
評(píng)論
共有 條評(píng)論