資源簡介
com原理與應(yīng)用書及源碼,網(wǎng)上大都不全這是比較完整的

代碼片段和文件信息
//?calcdriv.cpp?:?Defines?the?class?behaviors?for?the?application.
//
//?This?is?a?part?of?the?Microsoft?Foundation?Classes?C++?library.
//?Copyright?(C)?1992-1998?Microsoft?Corporation
//?All?rights?reserved.
//
//?This?source?code?is?only?intended?as?a?supplement?to?the
//?Microsoft?Foundation?Classes?Reference?and?related
//?electronic?documentation?provided?with?the?library.
//?See?these?sources?for?detailed?information?regarding?the
//?Microsoft?Foundation?Classes?product.
#include?“stdafx.h“
#include?“calcdriv.h“
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?baseD_CODE?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CCalcDrivApp
BEGIN_MESSAGE_MAP(CCalcDrivApp?CWinApp)
//{{AFX_MSG_MAP(CCalcDrivApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCalcDrivApp?construction
CCalcDrivApp::CCalcDrivApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCalcDrivApp?object
CCalcDrivApp?NEAR?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCalcDrivApp?initialization
BOOL?CCalcDrivApp::InitInstance()
{
#ifdef?_DEBUG
//?turn?on?extra?memory?tracking
afxMemDF?|=?checkAlwaysMemDF;
#endif
//?Initialize?OLE?2.0?libraries
if?(!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return?FALSE;
}
//?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.
Enable3dControls();????//?Use?3d?controls?in?dialogs
//?Simple?application?that?simply?invokes?a?dialog
CDriverDlg?dlg;
m_pMainWnd?=?&dlg;
dlg.DoModal();
return?FALSE;???//?don‘t?run?after?the?dialog?is?done
}
/////////////////////////////////////////////////////////////////////////////
//?CDriverDlg?dialog
CDriverDlg::CDriverDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CDriverDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CDriverDlg)
//}}AFX_DATA_INIT
}
CDriverDlg::~CDriverDlg()
{
TRY
{
//?shut?down?the?calculator
//??(since?calculator?shows?its?user-interface?it?would?stay?active
//??if?we?didn‘t?shut?it?down?with?a?call?to?its?Quit?method)
m_calc.Close();
}
END_TRY
}
void?CDriverDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDriverDlg)
DDX_Control(pDX?IDD_LAST_OPERATOR?m_stcOperator);
DDX_Control(pDX?IDD_LAST_OPERAND?m_stcOperand);
DDX_Control(pDX?IDC_LAST_ACCUM?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????6713??2003-08-28?21:02??Samples\ch11\calcdriv\calcdriv.cpp
?????文件???????6746??2003-08-28?21:02??Samples\ch11\calcdriv\calcdriv.dsp
?????文件????????539??2003-08-28?21:02??Samples\ch11\calcdriv\calcdriv.dsw
?????文件???????2177??2003-08-28?21:02??Samples\ch11\calcdriv\calcdriv.h
?????文件???????9294??2003-08-28?21:02??Samples\ch11\calcdriv\calcdriv.mak
?????文件???????3148??2003-08-28?21:03??Samples\ch11\calcdriv\calcdriv.rc
?????文件???????2268??2003-08-28?21:03??Samples\ch11\calcdriv\calctype.cpp
?????文件???????1012??2003-08-28?21:03??Samples\ch11\calcdriv\calctype.h
?????文件????????640??2003-08-28?21:03??Samples\ch11\calcdriv\makefile
?????文件??????20480??2003-08-28?21:02??Samples\ch11\calcdriv\Release\calcdriv.exe
?????文件????????766??2003-08-28?21:02??Samples\ch11\calcdriv\res\calcdriv.ico
?????文件???????1556??2003-08-28?21:02??Samples\ch11\calcdriv\res\calcdriv.rc2
?????文件????????938??2003-08-28?21:03??Samples\ch11\calcdriv\resource.h
?????文件????????519??2003-08-28?21:03??Samples\ch11\calcdriv\stdafx.cpp
?????文件????????806??2003-08-28?21:03??Samples\ch11\calcdriv\stdafx.h
?????文件??????34304??2003-08-28?21:03??Samples\ch11\CalcDrv.xls
?????文件??????11335??2003-08-28?21:03??Samples\ch11\mfccalc\calcdlg.cpp
?????文件???????2979??2003-08-28?21:03??Samples\ch11\mfccalc\calcdlg.h
?????文件????????642??2003-08-28?21:03??Samples\ch11\mfccalc\makefile
?????文件???????3021??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.cpp
?????文件???????6709??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.dsp
?????文件????????537??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.dsw
?????文件???????1317??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.h
?????文件???????9210??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.mak
?????文件???????1263??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.odl
?????文件???????7010??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.rc
?????文件????????650??2003-08-28?21:03??Samples\ch11\mfccalc\mfccalc.reg
?????文件??????24576??2003-08-28?21:03??Samples\ch11\mfccalc\Release\mfccalc.exe
?????文件????????766??2003-08-28?21:03??Samples\ch11\mfccalc\res\mfccalc.ico
?????文件????????399??2003-08-28?21:03??Samples\ch11\mfccalc\res\mfccalc.rc2
............此處省略491個(gè)文件信息
評(píng)論
共有 條評(píng)論