eltecprogetti
12th March 2012, 16:54
Hi,
I read this thread:
http://www.qtcentre.org/threads/8276-Excel-using-Qt
and I read also this page:
http://qt-project.org/forums/viewthread/1871
In my application I wrote only this line:
#include <QAxObject>
......
.....
QAxObject * excel = new QAxObject( "Excel.Application", 0 );
and I have 3 errors:
1) C:\Documents and Settings\Giuseppe\Applicativi QT\Excel-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2008__Qt_SDK__Debug\..\Excel\mainwindow.cpp:2 4: warning: C4189: 'excel' : local variable is initialized but not reference
2) mainwindow.obj:-1: error: 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::on_pushButton_clicked(void)" (?on_pushButton_clicked@MainWindow@@AAEXXZ)
3) debug\Excel.exe:-1: error: LNK1120: 1 unresolved externals
WHY ??????????????!!!!!!!!!!!!!
I read this thread:
http://www.qtcentre.org/threads/8276-Excel-using-Qt
and I read also this page:
http://qt-project.org/forums/viewthread/1871
In my application I wrote only this line:
#include <QAxObject>
......
.....
QAxObject * excel = new QAxObject( "Excel.Application", 0 );
and I have 3 errors:
1) C:\Documents and Settings\Giuseppe\Applicativi QT\Excel-build-desktop-Qt_4_8_0_for_Desktop_-_MSVC2008__Qt_SDK__Debug\..\Excel\mainwindow.cpp:2 4: warning: C4189: 'excel' : local variable is initialized but not reference
2) mainwindow.obj:-1: error: 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::on_pushButton_clicked(void)" (?on_pushButton_clicked@MainWindow@@AAEXXZ)
3) debug\Excel.exe:-1: error: LNK1120: 1 unresolved externals
WHY ??????????????!!!!!!!!!!!!!