LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

link a DLL like scard32.dll to project

I have to program chipcard memory. To do this I want to include the
scard32.dll of the manufacturer from the cardreader in my source code. The
dll use a funktion called SCardCommand. Does anybody know how to link the
dll to my projekt and how the function is called ? Is there a function like
LoadDLL "scard32.dll" or similar ?
--
iSiTEC GmbH
Dipl.-Ing. Norbert Rieper
Stresemannstr. 46 / 0.10
27570 Bremerhaven
Tel: 0471 / 92234-31
Fax: 0471 / 92234-44
nrieper@isitec.de
0 Kudos
Message 1 of 2
(4,449 Views)
Von: "Norbert Rieper"

> I have to program chipcard memory. To do this I want to include the
> scard32.dll of the manufacturer from the cardreader in my source code. The
> dll use a funktion called SCardCommand. Does anybody know how to link the
> dll to my projekt and how the function is called ? Is there a function
like
> LoadDLL "scard32.dll" or similar ?

There are several ways to use a dll in CVI. The easiest way is to link an
import library (.lib) which should be provided by the manufacturer, to your
project. Put the .dll into the directory of your .exe or into win\system (or
set the system-path to the directory that contains your .dll). Just call the
..dll functions like any other linked function, the import library will load
the .dll
when needed.

The following text is copied from the CVI-program-reference manual :
If you do not have a DLL import library, you can generate an import library
in
LabWindows/CVI. You must have an include file that contains the declarations
of all the
functions and global variables you want to access from the DLL. The calling
conventions
of the function declarations in the include file must match the calling
convention of the
functions in the DLL. For example, if the DLL exports functions using the
__stdcall
calling convention, the function declarations in the include file must
contain the __stdcall
keyword. Load the include file into a Source window and select
Options»Generate DLL
Import Library.

For more information about .dlls look into the CVI-program-reference manual
..

regards,
Manfred Schininger
0 Kudos
Message 2 of 2
(4,449 Views)