我正在尝试编写与C#相同的C ++ / cli:
// Create a PowerPoint application object.
PowerPoint.Application appPPT = new PowerPoint.Application();
// Create a new PowerPoint presentation.
PowerPoint.Presentation pptPreso = appPPT.Presentations.Add();
我有第一行:
ppt::Application^ PPT = gcnew ppt::ApplicationClass();
但我还没弄清楚如何做第二部分,有人可以告诉我如何添加新的PowerPoint演示文稿吗?
答案 0 :(得分:1)
PowerPoint::Presentation ^pptPreso = appPPT->Presentations->Add();