You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 09:07:20