best solution to use a DLL/Driver?

Posted by Alexander on Stack Overflow See other posts from Stack Overflow or by Alexander
Published on 2010-02-25T11:01:20Z Indexed on 2010/04/06 18:53 UTC
Read the original article Hit count: 444

Filed under:
|
|
|

Hi,
Im working with a CD722UN Customer Display for our POS application.

it comes with a USB2.0 connection and a installation package containing a driver ect..

now, for my application. how should i do when i want to access this driver?

at the moment i'm using the "CD722UN application"s .dll path but that can warry from clients OS ect..

    Declare Function opencd722usb Lib "C:\Program\cd7220 USB\cd722dusb.dll" () As Boolean
    Declare Function writecd722usb Lib "C:\Program\cd7220 USB\cd722dusb.dll" (ByRef dataoutput As Byte, ByVal Length As Integer) As Integer
    Declare Function readcd722usb Lib "C:\Program\cd7220 USB\cd722dusb.dll" (ByRef DataInput As Byte, ByVal size As Integer) As Integer
    Declare Function closecd722usb Lib "C:\Program\cd7220 USB\cd722dusb.dll" () As Boolean

my first thought was to first check if there was a device installed in the device manager and somehow use the driver from there???
or
distribute the .dll inside our application folder and use
searchpath ""installed directory"\cd722dusb.dll"

what is the best solution?

thanks in advance!

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about point-of-sale