You can always try using GetModuleHandle to get the handle to the already loaded dll if you really do want to use GetProcAddress.
If there is a better way I would definitely go for it.
Did you ever try using GetLastError ?
Yes:
qDebug() << init_raw_mouse(1, 0, 1) // Outputs 0;
qDebug() << GetLastError(); // Outputs 0
qDebug() << init_raw_mouse(1, 0, 1) // Outputs 0;
qDebug() << GetLastError(); // Outputs 0
To copy to clipboard, switch view to plain text mode
Here they say that if I recompile QT passing -D _WIN32_WINNT=0×501 as arguments, I could filter WM_INPUT messages.
But I still would have to use that C file for the rest of the implementation(to get the different input's and their respective x & y axis).
How can I rebuild QT? Can that happen trough QtCreator? I have VS2010, but don't use it.
Added after 4 minutes
:

Originally Posted by
squidge
In a Windows application, I can just use RegisterRawInputDevices(), I've never needed to do LoadLibrary/GetProcAddress, as they are standard functions.
This is why I'm confused. It's a standard library.
So if I included windows.h I could trim the code a bit? (I have no idea on Win32 programming.)
Added after 6 minutes
:
The website I downloaded the demo was here. I'm including the whole app in the attachment.
Bookmarks