当我运行我的Qt消息传递应用程序时,它会以退出代码-1073741515停止

时间:2010-09-13 07:05:38

标签: qt

主要

#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();
}

..其他代码:

protected:
    void changeEvent(QEvent *e);

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

        QXmlStreamReader xmlGetSinReader;
        QXmlStreamReader xmlCallOutboundReader;
        QXmlStreamReader xmlPutStatusReader;
        QTimer timer;
        QMessageId sendId;
        QMessageManager manager;
        QMessageService service;

当我评论QMessageIdQMessageManager varibales时,它可以正常工作但是当我取消注释这些字段时,它不起作用并向我显示退出代码-1073741515。请帮帮我。

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

1 个答案:

答案 0 :(得分:1)

关于Messaging模块的Installation guide of QtMobility

  

虽然此版本不支持,但桌面Windows后端要求安装MAPI子系统。请注意,如果您使用MinGW编译器,则消息传递功能将不起作用。另请注意,CE MAPI在Windows Mobile上可用,无需单独安装。

这意味着您无法在桌面上运行应用程序。您必须使用模拟器,或者必须将应用程序部署到设备。

相关问题