资源简介
C++控制播放/插入PPT等操作,可直接运行

代码片段和文件信息
// DlgProxy.cpp : implementation file
//
#include “stdafx.h“
#include “PPTAuto.h“
#include “DlgProxy.h“
#include “PPTAutoDlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPPTAutoDlgAutoProxy
IMPLEMENT_DYNCREATE(CPPTAutoDlgAutoProxy CCmdTarget)
CPPTAutoDlgAutoProxy::CPPTAutoDlgAutoProxy()
{
EnableAutomation();
// To keep the application running as long as an automation
// object is active the constructor calls AfxOleLockApp.
AfxOleLockApp();
// Get access to the dialog through the application‘s
// main window pointer. Set the proxy‘s internal pointer
// to point to the dialog and set the dialog‘s back pointer to
// this proxy.
ASSERT (AfxGetApp()->m_pMainWnd != NULL);
ASSERT_VALID (AfxGetApp()->m_pMainWnd);
ASSERT_KINDOF(CPPTAutoDlg AfxGetApp()->m_pMainWnd);
m_pDialog = (CPPTAutoDlg*) AfxGetApp()->m_pMainWnd;
m_pDialog->m_pAutoProxy = this;
}
CPPTAutoDlgAutoProxy::~CPPTAutoDlgAutoProxy()
{
// To terminate the application when all objects created with
// with automation the destructor calls AfxOleUnlockApp.
// Among other things this will destroy the main dialog
if (m_pDialog != NULL)
m_pDialog->m_pAutoProxy = NULL;
AfxOleUnlockApp();
}
void CPPTAutoDlgAutoProxy::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CCmdTarget::OnFinalRelease();
}
BEGIN_MESSAGE_MAP(CPPTAutoDlgAutoProxy CCmdTarget)
//{{AFX_MSG_MAP(CPPTAutoDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CPPTAutoDlgAutoProxy CCmdTarget)
//{{AFX_DISPATCH_MAP(CPPTAutoDlgAutoProxy)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_IPPTAuto to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {7F0437C3-94FA-4204-8206-95BA1493CAA1}
static const IID IID_IPPTAuto =
{ 0x7f0437c3 0x94fa 0x4204 { 0x82 0x6 0x95 0xba 0x14 0x93 0xca 0xa1 } };
BEGIN_INTERFACE_MAP(CPPTAutoDlgAutoProxy CCmdTarget)
INTERFACE_PART(CPPTAutoDlgAutoProxy IID_IPPTAuto Dispatch)
END_INTERFACE_MAP()
// The IMPLEMENT_OLECREATE2 macro is defined in StdAfx.h of this project
// {D6A9FDE1-C9A3-4E52-A8AB-C7AB84AC491E}
IMPLEMENT_OLECREATE2(CPPTAutoDlgAutoProxy “PPTAuto.Application“ 0xd6a9fde1 0xc9a3 0x4e52 0xa8 0xab 0xc7 0xab 0x84 0xac 0x49 0x1e)
/////////////////////////////////////////////////////////////////////////////
// CPPTAutoDlgAutoProxy message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-02-19 11:19 PPTAuto\
文件 2989 2009-11-18 10:26 PPTAuto\DlgProxy.cpp
文件 1650 2009-11-18 10:26 PPTAuto\DlgProxy.h
文件 39612 2015-07-16 17:55 PPTAuto\PPTAuto.aps
文件 1767 2009-11-19 17:36 PPTAuto\PPTAuto.clw
文件 2684 2009-11-18 10:31 PPTAuto\PPTAuto.cpp
文件 4555 2009-11-18 11:01 PPTAuto\PPTAuto.dsp
文件 539 2009-11-18 10:26 PPTAuto\PPTAuto.dsw
文件 1335 2009-11-18 10:26 PPTAuto\PPTAuto.h
文件 304128 2009-11-19 17:36 PPTAuto\PPTAuto.ncb
文件 1058 2009-11-18 10:26 PPTAuto\PPTAuto.odl
文件 53760 2009-11-19 17:36 PPTAuto\PPTAuto.opt
文件 248 2009-11-19 17:32 PPTAuto\PPTAuto.plg
文件 5984 2015-07-16 17:55 PPTAuto\PPTAuto.rc
文件 699 2009-11-18 10:26 PPTAuto\PPTAuto.reg
文件 880 2015-07-14 11:19 PPTAuto\PPTAuto.sln
文件 25600 2015-07-20 11:37 PPTAuto\PPTAuto.suo
文件 8796 2015-07-15 14:26 PPTAuto\PPTAuto.vcxproj
文件 2440 2015-07-14 11:19 PPTAuto\PPTAuto.vcxproj.filters
文件 143 2015-07-14 11:19 PPTAuto\PPTAuto.vcxproj.user
文件 22847 2015-07-16 18:20 PPTAuto\PPTAutoDlg.cpp
文件 2908 2015-07-16 17:55 PPTAuto\PPTAutoDlg.h
文件 5397 2015-07-20 11:34 PPTAuto\PPTAuto_h.h
文件 1956 2015-07-20 11:34 PPTAuto\PPTAuto_i.c
文件 4526 2009-11-18 10:26 PPTAuto\ReadMe.txt
文件 209 2009-11-18 10:26 PPTAuto\StdAfx.cpp
文件 1742 2009-11-18 10:26 PPTAuto\StdAfx.h
文件 328926 2009-11-18 10:32 PPTAuto\msppt.cpp
文件 113910 2009-11-18 10:32 PPTAuto\msppt.h
目录 0 2015-07-14 11:18 PPTAuto\res\
文件 1078 2009-11-18 10:26 PPTAuto\res\PPTAuto.ico
............此处省略2个文件信息
- 上一篇:BCH(168)编解码,c++实现
- 下一篇:端口扫描c实现
相关资源
- 国际象棋的qt源代码
- 操作系统c语言模拟文件管理系统844
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- 操作系统课设 读写者问题 c语言实现
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- C语言中 文件读取和写入的详细操作代
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- ROS操作系统入门讲义
- 嵌入式QtC++编程课件
- 显示屏操作(stm32f103c8t6(SAN))
- KEIl操作
- 颜色识别形状识别STM103嵌入式代码
评论
共有 条评论