LoadLibrary not calling DLLmain()

  • 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.

  • Lifetime Qt Champion

    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.

Log in to reply

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