当前位置:   article > 正文

QT线程读取excel表格问题解决_qaxobject requested control excel could not be ins

qaxobject requested control excel could not be instantiated

报错问题:
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);

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/170533
推荐阅读
相关标签
  

闽ICP备14008679号