資源簡介
基于MFC的簡單的計算器,自己寫的,分享一下

代碼片段和文件信息
//?Smallcomputor.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Smallcomputor.h“
#include?“SmallcomputorDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CSmallcomputorApp
BEGIN_MESSAGE_MAP(CSmallcomputorApp?CWinApp)
//{{AFX_MSG_MAP(CSmallcomputorApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CSmallcomputorApp?construction
CSmallcomputorApp::CSmallcomputorApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CSmallcomputorApp?object
CSmallcomputorApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CSmallcomputorApp?initialization
BOOL?CSmallcomputorApp::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
CSmallcomputorDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-12-27?13:09??MFC計算器\
?????文件???????37696??2012-05-04?11:01??MFC計算器\Calculator.aps
?????文件????????6684??2012-05-04?11:01??MFC計算器\Calculator.rc
?????目錄???????????0??2013-12-27?13:09??MFC計算器\Debug\
?????文件?????3130368??2012-05-07?11:31??MFC計算器\Debug\Smallcomputor.bsc
?????文件??????114758??2012-05-07?11:29??MFC計算器\Debug\Smallcomputor.exe
?????文件??????205688??2012-05-07?11:30??MFC計算器\Debug\Smallcomputor.ilk
?????文件???????13964??2012-05-07?11:29??MFC計算器\Debug\Smallcomputor.obj
?????文件?????7133564??2012-05-06?22:59??MFC計算器\Debug\Smallcomputor.pch
?????文件??????386048??2012-05-07?11:30??MFC計算器\Debug\Smallcomputor.pdb
?????文件????????3300??2012-05-04?10:56??MFC計算器\Debug\Smallcomputor.res
?????文件???????????0??2012-05-07?11:31??MFC計算器\Debug\Smallcomputor.sbr
?????文件???????48514??2012-05-07?11:29??MFC計算器\Debug\SmallcomputorDlg.obj
?????文件???????????0??2012-05-07?11:31??MFC計算器\Debug\SmallcomputorDlg.sbr
?????文件??????105459??2012-05-06?22:59??MFC計算器\Debug\StdAfx.obj
?????文件?????1367408??2012-05-06?22:59??MFC計算器\Debug\StdAfx.sbr
?????文件??????451584??2012-05-08?11:34??MFC計算器\Debug\vc60.idb
?????文件??????372736??2012-05-07?11:29??MFC計算器\Debug\vc60.pdb
?????文件????????3705??2011-05-08?08:28??MFC計算器\ReadMe.txt
?????目錄???????????0??2013-12-27?13:09??MFC計算器\res\
?????文件????????1746??2012-05-04?10:58??MFC計算器\resource.h
?????文件????????1078??2011-05-08?08:28??MFC計算器\res\Smallcomputor.ico
?????文件?????????405??2011-05-08?08:28??MFC計算器\res\Smallcomputor.rc2
?????文件???????22532??2012-05-10?11:19??MFC計算器\Smallcomputor.aps
?????文件????????2101??2012-05-10?11:19??MFC計算器\Smallcomputor.clw
?????文件????????2159??2011-05-14?15:25??MFC計算器\Smallcomputor.cpp
?????文件????????4286??2012-04-21?18:07??MFC計算器\Smallcomputor.dsp
?????文件?????????749??2011-05-14?11:36??MFC計算器\Smallcomputor.dsw
?????文件????????1401??2011-05-08?08:28??MFC計算器\Smallcomputor.h
?????文件??????369664??2012-05-10?11:19??MFC計算器\Smallcomputor.ncb
?????文件???????50688??2012-05-10?11:19??MFC計算器\Smallcomputor.opt
............此處省略6個文件信息
評論
共有 條評論