16,472
社区成员
发帖
与我相关
我的任务
分享
if (!AfxOleInit())
{
AfxMessageBox("初始化Ole出错!");
return FALSE;
}
if (!appExcel.CreateDispatch("Excel.Application"))
{
AfxMessageBox("无法创建Excel应用程序!");
return FALSE;
}
AfxOleGetMessageFilter()->EnableBusyDialog(FALSE);
AfxOleGetMessageFilter()->SetBusyReply(SERVERCALL_RETRYLATER);
AfxOleGetMessageFilter()->EnableNotRespondingDialog(TRUE);
AfxOleGetMessageFilter()->SetMessagePendingDelay(-1);