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. DLL problems
Forum Updated to NodeBB v4.3 + New Features

DLL problems

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 2.9k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    Sorin
    wrote on 19 Oct 2010, 13:42 last edited by
    #1

    I've created a shared library using Qt Creator( added QtCore and QtGui support ) but when I try to use this dll( I create an instance of a class from that dll ) into another app I'm getting app.exe exited with code -1073741515 at runtime and I don't know what I'm doing wrong.

    I added in my app .pro file the path to the dll:
    LIBS += "E:\Sorin\TestingQt\GUIComponents-build-desktop\debug\GUIComponents.dll"

    There are only 10 types of people in the world: Those who understand binary, and those who don't

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Sorin
      wrote on 19 Oct 2010, 14:38 last edited by
      #2

      If I'm adding the .dll to my folder app it's working but when I'm specifying the path to it I'm getting the error form above :(

      There are only 10 types of people in the world: Those who understand binary, and those who don't

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tony
        wrote on 19 Oct 2010, 14:43 last edited by
        #3

        Hi,

        I don't think that in your executable the specified path of the DLL will be used. So you should store the DLL together with the executable, or copy it in a directory contained in your PATH environment variable.

        Tony.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sorin
          wrote on 19 Oct 2010, 14:47 last edited by
          #4

          yes, that's the problem, the exe file doesn't know were to look for my dll, LIBS += path is used only at compile time. Thanks!

          There are only 10 types of people in the world: Those who understand binary, and those who don't

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Frank
            wrote on 19 Oct 2010, 15:10 last edited by
            #5

            If you're using Qt Creator, you can modify the PATH to use in the Run environment, adding the path to your DLLs there.

            1 Reply Last reply
            0

            2/5

            19 Oct 2010, 14:38

            • Login

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