
MiniPCIeCAN-2E-U
MiniPCIe Interface CAN Card User Manual
©2021 Guangzhou ZLG Microelectronics Technology Corp.,Ltd.
23
User Manual
Dynamic link library. If the first character is not a number sign (#), aliasname is the
name at the entry point of the function in the dynamic link library. If the first character
is (#), the following characters must specify the sequence number at the entry to the
function.
Arglist (optional)
Indicates a variable table that needs to pass parameters when calling the function.
Type (optional)
Data type of the return value of Function; it can be Byte, Boolean, Integer, Long,
Currency, Single, Double, Decimal (not supported currently), Date, String
(variable-length only), or Variant, a user-defined type, or an object type .
The syntax of the arglist parameter is as follows:
[Optional] [ByVal | ByRef] [ParamArray] varname[( )] [As type]
Partial description:
Optional
Indicates that the parameter is optional. If this option is used, subsequent arguments
in arglist must be optional and must all be declared with the Optional keyword. If
ParamArray is used, Optional cannot be used for any parameter.
ByVal (optional)
Indicates that the parameter is passed by value.
ByRef (optional)
Indicates that the parameter is passed by address.
For example:
Public Declare Function VCI_OpenDevice Lib "ControlCAN" (ByVal devicetype As Long,
ByVal deviceind As Long, ByVal reserved As Long) As Long