mainwindow.obj:-1: 错误:LNK2019: unresolved external symbol "public: __thiscall QAxObject::QAxObject(class QString const &,class QObject *)" (??0QAxObject@@QAE@ABVQString@@PAVQObject@@@Z) referenced in function "private: void __thiscall MainWindow::exportRecord(void)" (?exportRecord@MainWindow@@AAEXXZ)
mainwindow.obj:-1: 错误:LNK2019: unresolved external symbol "public: class QVariant __thiscall QAxBase::dynamicCall(char const *,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &)" (?dynamicCall@QAxBase@@QAE?AVQVariant@@PBDABV2@1111111@Z) referenced in function "private: void __thiscall MainWindow::exportRecord(void)" (?exportRecord@MainWindow@@AAEXXZ)
mainwindow.obj:-1: 错误:LNK2019: unresolved external symbol "public: class QAxObject * __thiscall QAxBase::querySubObject(char const *,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &,class QVariant const &)" (?querySubObject@QAxBase@@QAEPAVQAxObject@@PBDABVQVariant@@1111111@Z) referenced in function "private: void __thiscall MainWindow::exportRecord(void)" (?exportRecord@MainWindow@@AAEXXZ)
新手求解。。。
QAxObject* excel = new QAxObject( "Excel.Application", 0 );
excel->dynamicCall("SetVisible(bool)",true);
QAxObject *workbooks = excel->querySubObject( "Workbooks" );
------解决方案--------------------
自力更生的我