資源簡介
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實現
評論
共有 條評論