Author Topic: How to read data form HID-compliant device?  (Read 12000 times)

qmail03

  • Member
  • ***
  • Posts: 2
How to read data form HID-compliant device?
« on: May 09, 2012, 04:25:04 pm »
I have a touch screen,in WINDOWS7,it's hardwere is a HID-compliant device.I use SimpleHIDWrite(http://www.lvr.com/files/SimpleHIDWrite3.zip),to read   touch screen's tough DATa, it's worked.How SimpleHIDWrite read data form HID device?have some example?VB OR VC C C#.....
« Last Edit: May 09, 2012, 04:33:26 pm by qmail03 »

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to read date form HID-compliant device?
« Reply #1 on: May 09, 2012, 04:30:24 pm »
I have example code for communicating with generic HIDs (anything that doesn't appear as a system mouse or keyboard) here:

http://www.janaxelson.com/hidpage.htm#MyExampleCode

Jan
« Last Edit: July 13, 2014, 09:59:09 pm by Jan Axelson »

qmail03

  • Member
  • ***
  • Posts: 2
Re: How to read data form HID-compliant device?
« Reply #2 on: May 09, 2012, 04:50:18 pm »
I already try you code ,but it's can not read data like SimpleHIDWrite,see Attach file jpg

[attachment deleted by admin]

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: How to read data form HID-compliant device?
« Reply #3 on: May 09, 2012, 10:55:04 pm »
If the device appears as a system mouse or keyboard, use Raw Input.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645536%28v=vs.85%29.aspx

Jan