3,245
社区成员
发帖
与我相关
我的任务
分享
BOOL CPPTManager::InitPPT()
{
AfxMessageBox(_T("InitPPT IN"));
BOOL bCDispatch = app.CreateDispatch(_T("Powerpoint.Application"),NULL);
if (!bCDispatch)
{
AfxMessageBox(_T("InitPPT IN 2"));
return FALSE;
}
else
{
//app.put_Visible(1);//不显示窗体;
AfxMessageBox(_T("InitPPT IN 3"));
}
//BOOL bCDispatch2 = app.CreateDispatch(_T("Powerpoint.Application"), NULL);
AfxMessageBox(_T("InitPPT IN 4"));
return TRUE;
}