PORTS Forum

Ports and Interfaces => USB => Topic started by: wbt023 on April 01, 2011, 08:52:31 pm

Title: usbhidio_vc6
Post by: wbt023 on April 01, 2011, 08:52:31 pm
Hi:

I realise my questions here will sound silly to the experienced.
I am starting out learning to use the hid api and stumbled across this website:

http://www.microchip.com/forums/m492321.aspx

which highlights an issue with the WDK 7+, and offers a solution with a wrapper dll, which appears to function as advertised.

I would however like to utilise the standard windows api calls and hence downloaded the 'usbhidio_vc6' project, to get a feel for the API calls.
I also have the WinDDK and am using VS2008 on a Windows XP SP3 machine.

I cannot get the usbhidioc_vc6 project to compile. I believe i have created the appropriate links through the project properties with linker and C/C++ tabs to no avail.

It appears to throw alot of syntactical errors with references to files like: new.h, excpt.h and windef.h with a final BSCMAKE error associated with not finding a usbhidioc.sbr file... which I was under the impression the compiler would create...

Any help or advice would be much appreciated!

Cheers

Wbt
Title: Re: usbhidio_vc6
Post by: Jan Axelson on April 01, 2011, 09:47:35 pm
A web search on a specific error you're seeing might offer a clue. I haven't compiled that code for some time. My .NET examples are more robust. The DLL you mention includes source code for the API calls.

Jan