PORTS Forum

Ports and Interfaces => USB => Topic started by: Hokahonay on July 18, 2010, 08:59:09 am

Title: MyHid declaration
Post by: Hokahonay 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
Title: Re: MyHid declaration
Post by: Jan Axelson 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