pucara_faa
26th January 2010, 15:56
Hi everybody,
I'm having problems when trying to run an application with NCReports.
Here is the thing: I have installed Qt 4.5.2, with Qt Creator 1.2.1, and I had downloaded the NCReports from here http://www.nocisoft.com/?id=down&lang=en (NCReport_2.4.1_Win32_MinGW.exe). I installed it and everything was working perfect. I tried some examples, that showed how to make NCReports run from a Qt application, and they worked too.
But when I try to include it in my application, I get "application exited with code -1073741515".
This is my .pro file:
DEFINES += NCREPORT_IMPORT
LIBS += "C:\Archivos de programa\NCReport\2.4.1.mingw\lib\ncreport2.dll"
INCLUDEPATH += "C:\Archivos de programa\NCReport\2.4.1.mingw\include"
QT += xml sql
TEMPLATE = app
DEFINES += QT_NO_DEBUG_OUTPUT
CONFIG += warn_on \
qt \
thread \
release
# Input
HEADERS += ......
SOURCES += ......
RESOURCES += resources.qrc
And in the class that creates the report, I include these headers:
#include "ncreport.h"
#include "ncreportoutput.h"
#include "ncreportpreviewoutput.h"
#include "info.h"
#include "ncreportpreviewwindow.h"
#include "utils.h"
Then, I compile and everything works great. After that, I add the line
NCReport *report = new NCReport;
Then, I compile again and get "application exited with code -1073741515".
I don't know what I am missing, the example projects work, and I think that there are no difference between those projects and mine.
Please, If someone can help me, I'll be really thanked.
Best regards,
Facundo
I'm having problems when trying to run an application with NCReports.
Here is the thing: I have installed Qt 4.5.2, with Qt Creator 1.2.1, and I had downloaded the NCReports from here http://www.nocisoft.com/?id=down&lang=en (NCReport_2.4.1_Win32_MinGW.exe). I installed it and everything was working perfect. I tried some examples, that showed how to make NCReports run from a Qt application, and they worked too.
But when I try to include it in my application, I get "application exited with code -1073741515".
This is my .pro file:
DEFINES += NCREPORT_IMPORT
LIBS += "C:\Archivos de programa\NCReport\2.4.1.mingw\lib\ncreport2.dll"
INCLUDEPATH += "C:\Archivos de programa\NCReport\2.4.1.mingw\include"
QT += xml sql
TEMPLATE = app
DEFINES += QT_NO_DEBUG_OUTPUT
CONFIG += warn_on \
qt \
thread \
release
# Input
HEADERS += ......
SOURCES += ......
RESOURCES += resources.qrc
And in the class that creates the report, I include these headers:
#include "ncreport.h"
#include "ncreportoutput.h"
#include "ncreportpreviewoutput.h"
#include "info.h"
#include "ncreportpreviewwindow.h"
#include "utils.h"
Then, I compile and everything works great. After that, I add the line
NCReport *report = new NCReport;
Then, I compile again and get "application exited with code -1073741515".
I don't know what I am missing, the example projects work, and I think that there are no difference between those projects and mine.
Please, If someone can help me, I'll be really thanked.
Best regards,
Facundo