0

Im trying to load user32 in QT5 by doing:

    #include <qlibrary.h>
    #include <windows.h>
    #include <lmcons.h>
    #include <process.h>
    #include <stdio.h>
    #include <userenv.h>
    #include <winuser.h>

    QLibrary *lib = new QLibrary("user32");



            QFunctionPointer p;
            if(lib->load() && (p = lib->resolve("GetLastInputInfo"))) {
                qDebug() << "Lib loaded";
            } else {
                qDebug() << "Lib could not load";
            }

But keep getting output "Lib could not load"

Any ideas what I could be doing wrong?

Alosyius
  • 8,771
  • 26
  • 76
  • 120

0 Answers0