4 years, 8 months ago.

C# USB HID Demo program

Good day,

I need a WORKING demo program for USB HID for C# - Visual Studio 2017.

I have been searching for weeks now, and cannot find anything that works, and is reliable.

I have found this: https://os.mbed.com/cookbook/USBHID-bindings-

which points to: https://gist.github.com/DarranShepherd/f11efef7de934ae985dc

But I don't seem to be able to integrate it. :(

In a previous job I used Delphi (32 bit), with mcHID.DLL which worked amazingly well.

but it is 32 bit, and I cannot even get it to 'add' into VS.

So I can not even use that, with a lot of extra work.

Any help would be appreciated.

1 Answer

4 years, 8 months ago.

Hello Ceri,

The hidapi isn't a C# but rather a C++ library. It works fine for me with the MinGW for C++ on Windows 64-bit and GCC C++ on Linux 64-bit. I'm sure you can make it work with the Visual Studio 2017 too. Have a look at here for more info.