Why WinCE app can not running in some device.



  • when i build a wince sample "mainwindow".it working on some wince device but not all of them.it's not running on some device.
    I try to find problem.
    found that:
    when this code,it's working:
    @int WINAPI WinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPTSTR lpCmdLine,
    int nCmdShow)
    {
    QObject q;
    }
    @

    this code is not working.And havn't any response.
    @int WINAPI WinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPTSTR lpCmdLine,
    int nCmdShow)
    {
    QWidget q;
    }@

    And any other MFC program is working.

    please help me.
    Thanks.



  • I suggest reading the Qt docs and beginner tutorials. For starters you are missing a QApplication.



  • Thank you.
    I know I miss QApplication.
    Because I want to test how to make app working.So i erase all of them to try.
    This sample mean's if i use qtgui module that can't running. But in other wince device,it's working.

    [quote author="Thomas Zander" date="1368596870"]I suggest reading the Qt docs and beginner tutorials. For starters you are missing a QApplication.[/quote]



  • news:
    qtgui4.dll used ole32.dll
    device1 ole32.dll 100k not working
    device2 ole32.dll 500k working

    I think device1's os cut some function.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.