赞
踩
报错问题:
CoCreateInstance failure (尚未调用 CoInitialize。)
QAxBase::setControl: requested control Excel.Application could not be instantiated
解决方法:
#include “Windows.h”
并且在 excel = new QAxObject(“Excel.Application”);前添加CoInitializeEx(NULL, COINIT_MULTITHREADED);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。