Click here to Skip to main content
15,887,585 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all:

I used the USB: RawHid Test C source code of the Raw HID to obtain the HID information from USB,
(resource: http://www.pjrc.com/teensy/rawhid.html )
developing on MFC.

it's work on Win7, BUT on Win8 it CAN'T read the information...
(it can recognize each interface through the library, but it can't read the data inside)

After google, I found the problem maybe is CreateFile function which doesn't support on the Win8.
(ref: https://goo.gl/bdSwnh )

I tried many methods, while I still cannot settle this issue:(

Would anyone provides some suggestion?

appreciated!!
Posted
Updated 20-Aug-15 23:36pm
v4

1 solution

I've settled it by myself!
In that I observed the Row HID connected, restart(insert & pull) could solve the issue on Win8 up.
As a result, I added the devcon.exe which is the MS official program.
It can simulate the action of USB restart.

Meathod:
Implement & restart the USB device in background after connecting the USB.
Afterwards, the device would be used steadily:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900