Link to home
Start Free TrialLog in
Avatar of lee_murphy
lee_murphy

asked on

Accessing DLL in VB.Net

Hi,

I'm trying to connect to a swipe card machine and need a hand getting started.  The developers of the machines have given me a DLL and a manual but as it's not VB I'm lost and just need a hand getting the initial connection working, once I get that started I'll be good...I hope.

So I've got this DLL and instructions like this:

-------------------------------------------------------------------------------------
DRIVER INTERROGATION

It is envisaged that future enhancements might be made to the driver, which might affect the programming interface available to a calling application. An application should enquire the driver's version information before calling any other function.

int FbBrg_Version(char *Dst, int Len);

Fills the supplied destination buffer with the drivers version string.

The argument 'Dst' specifies where the string should be copied to and 'Len' specifies the size of the destination buffer.

The drivers null terminated version string is copied to the specified buffer. If the destination buffer is too small for the complete string, then a null character is placed at the last position; i.e., the string is truncated.

The return value specifies the full length of the available version string (including the null terminator) and may be larger than the amount transferred.
-------------------------------------------------------------------------------------

So, using the dll provided, how do I run this command (FbBrg_Version) and get the result?  There are other commands but once I figure out how to run this one the rest will hopefully folow suit.
ASKER CERTIFIED SOLUTION
Avatar of Luis Pérez
Luis Pérez
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lee_murphy
lee_murphy

ASKER

Thank you very much!