QT load QLibrary user32 -
im trying load user32
in qt5 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 not load"; }
but keep getting output "lib not load"
any ideas doing wrong?
Comments
Post a Comment