HID sample Application errors

Hi,

Jan Axelson sample HID application shows two errors , I am using Windows 2000 and
Windows 2003 DDK sp1.

error C2065: ‘HidD_GetInputReport’ : undeclared identifier

error C2065: ‘HidD_SetOutputReport’ : undeclared identifier

usbhidioc.exe - 2 error(s), 0 warning(s)

please give me your suggestions and solutions .

Thankyou
raju.

xxxxx@gmail.com wrote:

Hi,

Jan Axelson sample HID application shows two errors , I am using Windows 2000 and
Windows 2003 DDK sp1.

error C2065: ‘HidD_GetInputReport’ : undeclared identifier

error C2065: ‘HidD_SetOutputReport’ : undeclared identifier

usbhidioc.exe - 2 error(s), 0 warning(s)

please give me your suggestions and solutions .

Did you check MSDN before posting here? It’s much quicker than waiting
for a human to respond.

HidD_GetInputReport is only supported on XP and beyond. MSDN recommends
using ReadFile to get input reports and WriteFile to send output reports.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.