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. Unable to load DLL QT with C#
Qt 6.11 is out! See what's new in the release blog

Unable to load DLL QT with C#

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

    Hello all,

    I have this code QT in "mydll.dll"

    __declspec(dllexport) void Test()
    {
      qDebug() << "messaggio da DLL";
    }
    

    If i use this code with a program c#, i get the following error:
    Unable to load DLL "mydll" The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    Together with the dll "mydll" I also copied Qt5Cored.dll

    with this code
    __declspec(dllexport) void Test()
    {
    // qDebug() << "messaggio da DLL";
    }

    the program works;

    Thanks in advance.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      NicuPopescu
      wrote on last edited by
      #2

      check the dll's dependencies with Dependency Walker

      1 Reply Last reply
      0
      • R Offline
        R Offline
        resurrezione
        wrote on last edited by
        #3

        Solved.
        missing icudt51.dll
        thanks

        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