hid-data command line program into dll

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
darvelo
Posts: 6
Joined: Thu Jan 14, 2010 2:11 am

hid-data command line program into dll

Post by darvelo » Wed Mar 17, 2010 5:07 am

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.

Guest

Re: hid-data command line program into dll

Post by Guest » Mon Mar 29, 2010 6:15 am

Anyone? :/

Post Reply