I want to make use of the HIDAPI library for a home-brewed USB device. Rather than having to compile the VC++ project into its own .dll and reference it in the .Net project I have, I would prefer to just have the code present within the .Net project and be able to reference it directly.
The reason is I want to avoid having a .dll referencing another .dll, and instead just have a single .dll file.
I've done it in reverse, sort of, where I have used a C# class within a C++ program when I was doing some JNI stuff.
Is what I am trying to do here possible? Is there an idiots guide to using C++ in .Net projects somewhere?