16,175
社区成员
发帖
与我相关
我的任务
分享
CoCreateInstance failure (??δ???? CoInitialize??)
QAxBase::setControl: requested control Excel.Application could not be instantiated
QAxObject * excelApplication = new QAxObject("Excel.Application");
QAxObject * excelApplication = new QAxObject("Excel.Application");
excelApplication->dynamicCall("Quit()");
qDebug() << tr("------分隔符------");
mt = new myThread();
mt->start();
QAxObject * excelApplication = new QAxObject("Excel.Application");
"------分隔符------"
CoCreateInstance failure (??δ???? CoInitialize??)
QAxBase::setControl: requested control Excel.Application could not be instantiated
HRESULT r = OleInitialize(0);
if (r != S_OK && r != S_FALSE) {
qWarning("Qt: Could not initialize OLE (error %x)", (unsigned int)r);
}
QAxObject * excelApplication = new QAxObject("Excel.Application");
OleUninitialize();