資源簡(jiǎn)介
mfc實(shí)現(xiàn)獲取系統(tǒng)的版本號(hào)和OFFICE版本號(hào)

代碼片段和文件信息
//?os.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“os.h“
#include?“osDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?COsApp
BEGIN_MESSAGE_MAP(COsApp?CWinApp)
//{{AFX_MSG_MAP(COsApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?COsApp?construction
COsApp::COsApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?COsApp?object
COsApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?COsApp?initialization
BOOL?COsApp::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
COsDlg?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í)間???名稱
-----------?---------??----------?-----??----
?????文件???????1184??2008-09-04?16:37??os\os.clw
?????文件???????3507??2008-08-12?16:34??os\ReadMe.txt
?????文件???????1280??2008-08-12?16:34??os\os.h
?????文件???????2007??2008-08-12?16:34??os\os.cpp
?????文件???????1054??2008-08-12?16:34??os\StdAfx.h
?????文件????????204??2008-08-12?16:34??os\StdAfx.cpp
?????文件????????394??2008-08-12?16:34??os\res\os.rc2
?????文件???????1078??2008-08-12?16:34??os\res\os.ico
?????文件???????4087??2008-08-12?16:34??os\os.dsp
?????文件????????512??2008-08-12?16:34??os\os.dsw
?????文件??????50176??2008-09-04?16:38??os\os.ncb
?????文件???????2580??2008-08-12?16:43??os\Debug\os.res
?????文件?????214016??2008-09-04?16:37??os\Debug\vc60.idb
?????文件????5494560??2008-08-12?16:38??os\Debug\os.pch
?????文件?????364544??2008-08-12?16:43??os\Debug\vc60.pdb
?????文件?????105921??2008-08-12?16:38??os\Debug\StdAfx.obj
?????文件?????106597??2008-08-12?16:43??os\Debug\os.exe
?????文件?????353280??2008-08-12?16:43??os\Debug\os.pdb
?????文件??????14172??2008-08-12?16:43??os\Debug\os.obj
?????文件??????33665??2008-08-12?16:43??os\Debug\osDlg.obj
?????文件?????197804??2008-08-12?16:43??os\Debug\os.ilk
?????文件????????238??2008-09-04?16:37??os\os.plg
?????文件???????1373??2008-08-12?16:41??os\osDlg.h
?????文件???????5397??2008-08-12?16:43??os\os.rc
?????文件????????818??2008-08-12?16:43??os\Resource.h
?????文件??????35832??2008-08-12?16:43??os\os.aps
?????文件???????6953??2008-08-12?16:43??os\osDlg.cpp
?????文件??????48640??2008-09-04?16:38??os\os.opt
?????目錄??????????0??2008-08-12?16:34??os\res
?????目錄??????????0??2008-08-12?16:34??os\Debug
............此處省略4個(gè)文件信息
- 上一篇:C++語言釋難解惑
- 下一篇:VC++ 對(duì)話框 滾輪 計(jì)算器
評(píng)論
共有 條評(píng)論