EasyManua.ls Logo

Sys Tec Electronic USB-CANmodul - Dynamic Linked Library (DLL) Usage

Sys Tec Electronic USB-CANmodul
74 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Software
SYS TEC electronic GmbH 2001 L-487e_6
29
3.2
Dynamic Linked Library
The Dynamic Linked Library (DLL) is a function library for
application programs. It is also possible to use the DLL as an
interface between the system driver layer and an application program.
The DLL for the USB-CANmodul (USBCAN32.DLL) enables easy
access to the USB-CAN system driver functions. It administers the
opened USB-CANmodul and translates the USB messages into CAN
messages.
Add the file USBCAN32.LIB to your project for linking the DLL to
your own project. Starting the application program automatically
loads the DLL. If the USBCAN32.LIB is not linked to the project,
load the DLL manually with the Windows function LoadLibrary ()
and add the library functions with the function GetProcAdress ().
The STDCALL calling convention of the DLL functions provides a
standardized interface to the user. This standard interface ensures,
that users of other programming languages than C/C++ (Pascal, etc.)
are able to use these functions.
The file DEMO.API contains an example program written in
Microsoft VisualC/C++5.0. This example project demonstrates the
use of the DLL functions.
3.2.1
The Attributes of the USBCAN32.DLL
With USBCAN32.DLL, it is possible to use 10 USB-simultaneously
with one application program, as well as with several application
programs. However, it is not possible to use one USB-CANmodul
with several application programs.
Three states within the software are generated for each USB-
CANmodul when using this DLL.

Table of Contents