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. LoadLibrary not calling DLLmain()
Forum Updated to NodeBB v4.3 + New Features

LoadLibrary not calling DLLmain()

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.0k 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.
  • D Offline
    D Offline
    drdas
    wrote on last edited by
    #1

    I am new to QT and trying ways to load .dll file using loadlibrary winAPI.
    i have one "app" project and a "DLL". I am calling loadlibrary from "app" project to load the "DLL" project's DLL file.
    This gets success and returns lasterrorcode 0 but its is not calling DLLmain function on loading.
    Can anyone tell me if i have missed any thing here

    in short i want DLLmain to be called when loadlibrary happens.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      If you really want to only use the loadlibrary winAPI then you should rather ask this on the MSDN forum.

      However, Qt provides "QLibrary":http://qt-project.org/doc/qt-5/qlibrary.html which does the loading for you, you should give it a try.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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