PORTS Forum

Ports and Interfaces => USB => Topic started by: divabanana on September 19, 2010, 06:12:51 pm

Title: usbhidio feature report in vb6
Post by: divabanana on September 19, 2010, 06:12:51 pm
Hi,

I am using usbhidio code from usbhidio2.zip (the vb6 example) as a basis for communicating with a HID.
Reading the device is no problem and sending 2 byte values using output report is fine.

I need to send an 8 byte hex string using the feature report but can't for the life of me get it to work.

I've set the string as values in the outputdata array but am having problems with the WriteData () code.

Could someone show a quick example of the correct vb6 code to send an 8 byte array using feature reports?  ???

Huge thanks :)