Ports
May 22, 2013, 02:20:05 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: How to read data form HID-compliant device?  (Read 2160 times)
qmail03
Member
*
Posts: 2


« on: May 09, 2012, 03: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, 03:33:26 pm by qmail03 » Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #1 on: May 09, 2012, 03: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.lvr.com/hidpage.htm#MyExampleCode

Jan
Logged
qmail03
Member
*
Posts: 2


« Reply #2 on: May 09, 2012, 03:50:18 pm »

I already try you code ,but it's can not read data like SimpleHIDWrite,see Attach file jpg
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #3 on: May 09, 2012, 09: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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!