用C ++ / cli创建PPT

时间:2013-06-12 21:57:51

标签: c# .net c++-cli

我正在尝试编写与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演示文稿吗?

1 个答案:

答案 0 :(得分:1)

PowerPoint::Presentation ^pptPreso = appPPT->Presentations->Add();