如何在PowerPoint C++自动化中指定PowerPoint版本(MFC/Win10环境)
MFC下PowerPoint 2003&2010 C++自动化开发实践
我目前在Windows 10系统中,使用MFC进行PowerPoint 2003和2010的C++自动化开发,电脑里同时安装了这两个版本的PowerPoint。我的实现代码如下:
// Firstly,I load PowerPoint2003 and PowerPoint2010 c++ automation library // Start the powerpoint in Powerpoint2003 automation CApplication app2003; if(!app2003.CreateDispatch(_T("Powerpoint.Application.11"))) { AfxMessageBox(_T("Couldn't start PowerPoint.")); } else // Make PowerPoint visible { app2003.put_Visible(TRUE); } ... // close the powerpoint // S...
内容的提问来源于stack exchange,提问作者zet
相关产品推荐
相关产品推荐

