Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to include one .dll file to QT working project.
Forum Updated to NodeBB v4.3 + New Features

How to include one .dll file to QT working project.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 305 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
    Jigyansu
    wrote on last edited by
    #1

    Hi we are trying to add one external dll file to our current working qt project but it is throwing error.
    DLL -> McxApi.dll

    We tried to attach the dll file to the .pro file using below method
    LIBS += <psth>/McxApi.dll
    Here it was able to add but while accessing the library it was throwing error.

    Can you let us know how to solve this issue so that we will helpfull.

    JonBJ 1 Reply Last reply
    0
    • J Jigyansu

      Hi we are trying to add one external dll file to our current working qt project but it is throwing error.
      DLL -> McxApi.dll

      We tried to attach the dll file to the .pro file using below method
      LIBS += <psth>/McxApi.dll
      Here it was able to add but while accessing the library it was throwing error.

      Can you let us know how to solve this issue so that we will helpfull.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Jigyansu
      If you want to link with a DLL you need a library .lib file (MSVC) or a .a file (MinGW, if it's C++, or .lib if it's C only) to pass to the linker. Not the DLL. That is required to be found at runtime.

      If you only want to load the DLL dynamically at runtime, that does not require any library at link time. But it is much harder to call functions in a dynamically-loaded DLL than in one linked with.

      1 Reply Last reply
      2

      • Login

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