开发者

When I run my Qt messaging application it stops with exit code -1073741515

开发者 https://www.devze.com 2023-01-16 02:21 出处:网络
main: #include \"QtGui/QApplication\" #include \"spc_login.h\" int main(int argc, char *argv[]) { QApplication a(argc, argv);

main:

#include "QtGui/QApplication"
#include "spc_login.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    SPC_LOGIN w;
    //#if defined(Q_WS_S60)
    //    w.showFullScreen();
    //#else
    //    w.show();
    //#endif
    w.showMaximized();
    return a.exec();
}

..other code:

protected:
    void changeEvent(QEvent *e);

    private:
        // QAction *softKeyAction;
        // QAction *leftSoftKeyAction;
        Ui::THREESPC_VERIFYINGNUMBER *ui;
        QHttp *getSinHttp;
        QHttp *getOutboundSMSHttp;
        QHttp *putStatusHttp;

        QXmlStreamReader xmlGetS开发者_如何学CinReader;
        QXmlStreamReader xmlCallOutboundReader;
        QXmlStreamReader xmlPutStatusReader;
        QTimer timer;
        QMessageId sendId;
        QMessageManager manager;
        QMessageService service;

When I comment out QMessageId and QMessageManager varibales then it works fine but when I uncomment these fields, it doesn't work and shows me the exit code -1073741515. Please help me.

Starting C:\NokiaQtSDK\QtCreator\bin\SPCWIDGET-build-simulator\debug\SPCWIDGET.exe...
C:\NokiaQtSDK\QtCreator\bin\SPCWIDGET-build-simulator\debug\SPCWIDGET.exe exited with code -1073741515


From the Installation guide of QtMobility about the Messaging module:

While not supported for this release the desktop Windows backend requires that a MAPI subsystem is installed. Note that messaging functionality will not work if you are using the MinGW compiler. Additionally note that CE MAPI is available on Windows Mobile and does not need to be installed separately.

Which means that you cannot run your application on the desktop. You will have to use an emulator or you have to deploy your app to a device.

0

精彩评论

暂无评论...
验证码 换一张
取 消