Page 1 of 1

hid-data command line program into dll

Posted: Wed Mar 17, 2010 5:07 am
by darvelo
I have implemented V-USB into a device that measures sensor readings. These readings are sent to the PC using the hid-data example with the command line application using the "read" parameter.

I want to program a Visual Basic front-end to read these values instead. Is there any way I can compile the hid-data command line code into a Windows DLL to call the usbhidGetReport() function from VB?

Edit: I found this site (http://www.codeproject.com/KB/DLL/XDllPt2.aspx) which describes some of the process. If I create an exported function which just returns the byte array as a string, could this DLL scenario work? I believe I'd have to compile the hid-data code in Visual Studio.

Re: hid-data command line program into dll

Posted: Mon Mar 29, 2010 6:15 am
by Guest
Anyone? :/