Author Topic: MyHid declaration  (Read 15572 times)

Hokahonay

  • Member
  • ***
  • Posts: 1
MyHid declaration
« on: July 18, 2010, 08:59:09 am »
Hi Everyone
I am a complete newbie to USB but wanting to learn about how to use I bought USB complete ed 3
everything was going great until i got to chapt 13. like i said a complete newbie and this question just has to be so obvious that i'm missing it. there is a refrence to myHid : DeviceAttributes.Size =
Marshal.SizeOf(myHID.DeviceAttributes). where does myHid come from, i cant find its declaration anywhere

thanks for your patience

Dave

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: MyHid declaration
« Reply #1 on: July 18, 2010, 12:17:54 pm »
MyHid is an instance of the application's Hid class:

Private MyHid As New Hid()

See my HID page for complete example code:

www.Lvr.com/hidpage.htm

Jan