USB/HID communication

  • Thread starter Thread starter Hubert Hermanutz
  • Start date Start date
H

Hubert Hermanutz

Hello,

Where can i get a sample about HID communication with .NET Framework?

I don't know enough about HID communication, only that with VC++ it is
possible to using the Windows Device Development Kit. Exists for .NET
specifically namespaces or must i also use the DDK?

Thanks in advance,
Hubert
 
Hi,

There is nothing in the framework for this. You have to P/Invoke the HidD*
API functions -- there are a number of structures that you need to
implement, and lots of details. I suggest that you get a book on the
subject (I don't think the details on MSDN are sufficient). I use Jan
Axelson's book, USB Complete 2nd Edition. It has HID details and code (VB6,
but this can be ported to .NET without too much trouble).

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Hello Dick,

thanks for your contribution. I've a book from Jan Axelson about USB and the
VB example. But I've thought for .NET there gets a better way to implement
HID.

What do you think about the DirectInput-Interface from DirectX. Is this a
better way?

Regards,
Hubert
 
Hi,
What do you think about the DirectInput-Interface from DirectX. Is this a
better way
<<

I don't know anything about DirectX. Sorry.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Back
Top