Author Topic: ExchangeFeatureReports VB6  (Read 10102 times)

Helg15

  • Member
  • ***
  • Posts: 1
ExchangeFeatureReports VB6
« on: April 18, 2013, 08:01:41 am »
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.

I need to send an 2 byte hex string using the feature report, could someone show, how can I use  "Sub ExchangeFeatureReports()" from example for VisualBasic.NET (generic_hid_vb_46 or generic_hid_vb_50)

How can use "success = myOutFeatureReport.Write(outFeatureReportBuffer, hidHandle)" in VB6 ?

Huge thanks

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: ExchangeFeatureReports VB6
« Reply #1 on: April 18, 2013, 09:37:18 am »
Add a declaration for HidD_SetFeature and code to call the function. Use the .NET code as a model.