资源简介
com原理与应用书及源码,网上大都不全这是比较完整的
代码片段和文件信息
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 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个文件信息
- 上一篇:易语言源码csv数据处理快速版
- 下一篇:矩阵分析课后答案,作者魏丰,史荣昌
评论
共有 条评论