|
@@ -3,13 +3,17 @@
|
|
|
#include <QLibrary>
|
|
|
#include <iostream>
|
|
|
|
|
|
+extern QString gstrAppPath;
|
|
|
ExcelAPI::ExcelAPI()
|
|
|
{
|
|
|
std::cout<<"Load Excel API"<<std::endl;
|
|
|
+
|
|
|
#ifdef Q_OS_WIN
|
|
|
QLibrary xlib("./plugin/libxlnt.dll");
|
|
|
#else
|
|
|
- QLibrary xlib("./plugin/libxlnt.so.1.5.0");
|
|
|
+ QString strxlntpath = gstrAppPath + "/plugin/libxlnt.so.1.5.0";
|
|
|
+ QLibrary xlib(strxlntpath);
|
|
|
+// QLibrary xlib("./plugin/libxlnt.so.1.5.0");
|
|
|
#endif
|
|
|
if(!xlib.load())
|
|
|
{
|
|
@@ -20,7 +24,9 @@ ExcelAPI::ExcelAPI()
|
|
|
#ifdef Q_OS_WIN
|
|
|
QLibrary qlib("./plugin/ivxlnt.dll");
|
|
|
#else
|
|
|
- QLibrary qlib("./plugin/libivxlnt.so");
|
|
|
+ QString strivxlntpath = gstrAppPath + "/plugin/libivxlnt.so";
|
|
|
+ QLibrary qlib(strivxlntpath);
|
|
|
+ // QLibrary qlib("./plugin/libivxlnt.so");
|
|
|
#endif
|
|
|
if(qlib.load())
|
|
|
{
|