Method Of Using The Interface Library Functions; Methods Of Calling The Dynamic Library On Windows; Method Of Vc Calling The Dynamic Library; Method Of Vb Calling The Dynamic Library - ZLG MiniPCIeCAN-II Product User Manual

Minipcie interface can card
Table of Contents

Advertisement

MiniPCIeCAN-II
MiniPCIe Interface CAN Card User Manual

5. Method of Using the Interface Library Functions

Efficient and easy-to-use secondary development functions, which support various
development environments, such as VC, C#, Labview, and Linux, as shown in Figure 5.1.

5.1 Methods of Calling the Dynamic Library on Windows

First, put the library function files in the working directory. The library function file has
three files ControlCAN.h, ControlCAN.lib, ControlCAN.dll and the kerneldlls folder in total.

5.1.1 Method of VC Calling the Dynamic Library

(1) The ControlCAN.h header file is included in the .CPP file.
Such as: #include "ControlCAN.h"
(2) Connect to the ControlCAN.lib file in the connector settings of the project.
For example: in the VC7 environment, add ControlCAN.lib in the configuration
properties → connector → input → additional dependencies on the project
property page

5.1.2 Method of VB Calling the Dynamic Library

It can be called after declaring it in the following method.
Syntax:
[Public | Private] Declare Function name Lib "libname" [Alias "aliasname"] [([arglist])] [As
type]
The syntax of the Declare statement consists of the following parts:
Public (optional)
Used to declare functions available to all procedures in all modules.
Private (optional)
Used to declare a function that can only be used in the module that contains the
declaration.
Name (mandatory)
Figure 5.1 Supported development environments
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
21
User Manual

Advertisement

Table of Contents
loading

Table of Contents