Unable to load DLL QT with C#

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

  • check the dll's dependencies with Dependency Walker

  • Solved.
    missing icudt51.dll

Log in to reply

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