Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TextFinder example running standalone on win7 - runtime error 0xc0150002

TextFinder example running standalone on win7 - runtime error 0xc0150002

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 5.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jrowellfx
    wrote on last edited by
    #1

    Hi folks,

    Newbie to Qt here and very enthused about getting into the IDE and building apps with it. Hoping someone can help with a small amount of trouble I'm having.

    I've created the simple desktop widget app called "TextFinder" (from tutorial/examples in docn), and I've managed to get my win7 PC's env variables set up appropriately such that when I run the "TextFinder.exe" app that gets built I don't get complaints about missing DLLs, however the program doesn't start and I get this error message:

    TextFinder.exe - Application Error
    The application was unable to start correctly (0xc0150002). Click OK to close the application.

    I have a window 7 (ultimate) - 64 bit OS. I've installed the Qt binaries, and also installed and am trying the qt-win-commercial-4.7.3-vs2008 set of packages too. I have never had VS2005, or VS2008 installed on this computer (prior to whatever was installed by the Qt installers.) I searched within the Qt site for "0xc0150002" and didn't come up with anything relevant.

    The best I can come up with in a general google search is that I might need to reinstall the VS2005 and/or VS2008 redistributables, but unclear if I should install the (x86) ones, or the (x64), or both? Or all of the above? (Linux frequently needs 32 and 64 bit libs installed for programs to run, not sure about the PC).

    Any and all help will be greatly appreciated.
    Kind Regards,
    James.

    Edit: I may be wrong about not having VS2005 or VS2008 installed on the computer before - there's a long list of Visual C++ Redistributables listed in the "Programs and Features" control panel - all of which appear to have been installed at various points in the past, I just don't recall having installed them myself.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      [quote]
      I have never had VS2005, or VS2008 installed on this computer (prior to whatever was installed by the Qt installers.)
      [/quote]
      You do know that you still need the compiler, right?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jrowellfx
        wrote on last edited by
        #3

        I was using mingw to compile the program.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          loladiro
          wrote on last edited by
          #4

          If you are using mingw to compile the program, then you need the mingw-compiled Qt libraries, they are not binary compatible with the MSVC ones.

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jrowellfx
            wrote on last edited by
            #5

            Thank you loladiro - any thoughts on how I fix it? I have only just installed the SDK and the commericial eval - should I ditch the commercial eval since it seems to require VS2008? It's not clear to me how to proceed - I've just installed the two apps (SDK and commerical eval) yesterday and am new to programming apps on a PC, so please assume I've fairly ignorant of PC programming environment details. I appreciate your help.

            1 Reply Last reply
            0
            • J Offline
              J Offline
              jrowellfx
              wrote on last edited by
              #6

              PS - I was just using QT Creator to build the app - nothing to do with anything that came bundled with the commercial setup.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jrowellfx
                wrote on last edited by
                #7

                Also - when I "Run" the example program in QT Creator, it runs fine, for what that's worth.

                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  loladiro
                  wrote on last edited by
                  #8

                  You have two options:

                  • Get Visual Studio (Express, if you don't own a license)
                  • Get the MinGW version of the commercial version of Qt (there is one)
                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jrowellfx
                    wrote on last edited by
                    #9

                    Cool - thanks loladiro.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jrowellfx
                      wrote on last edited by
                      #10

                      BTW - installing Visual Studio C++ 2008 Express, plus adding the directory "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin" to my PATH env variable (so Qt can find nmake) seemed to do the trick! Thanks again Loladiro.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved