You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, July 25th 2010, 3:05pm

Hid Development

Hi everyone I hope to get help with this hopefully soon.
I'm currently trying to port some code I'd done in C# a while back into Qt as I want to keep developing in it from now on.
After inlcuding all the .a files in my .pro file:

Source code

1
2
3
4
5
6
INCLUDEPATH += "C:\Qt\2010.04\mingw\include\ddk" 
LIBS += "C:\Qt\2010.04\mingw\lib\libkernel32.a" \
"C:\Qt\2010.04\mingw\lib\libsetupapi.a" \ 
"C:\Qt\2010.04\mingw\lib\libuser32.a" \ 
"C:\Qt\2010.04\mingw\lib\libhid.a" \ 
"C:\Qt\2010.04\mingw\lib\libhidparse.a"

and included every single #include that I need to get the program to compile I'm now getting the following errors most of which has to do with the
hidusage.h file: 'USAGE' does not name a type". A look at the USAGE definition in hidusage.h shows this line: typedef USHORT USAGE, *PUSAGE;
And another error: Definition of 'NTSTATUS HidPTranslateusagesToI8042ScanCodes' is marked 'dllimport' the latter message with reference to hidpi.h
Can anyone tell me what I'm missing in order to be able to use these libraries?


2

Sunday, July 25th 2010, 3:54pm

Sometimes people do stupid things... I forgot to #include <windows.h>