CANLIB versions are denoted by two numbers, the "major version" and the "minor version". Usually the version is presented as these two numbers separated by a period. For example, CANLIB 3.6 has major version 3 and minor version 6.
You may want to make your application determine which version of CANLIB is installed on the computer it is running on. There are several ways of obtaining version information.
First, it is necessary to observe that CANLIB consists of several files, each one with a version number. Your application must check all these version numbers to be certain that
As a rule, files in CANLIB has two version numbers:
Use canGetVersionEx() to get the version of the CANLIB API DLL. This function allows you to get both the file and the product version number of the API DLL.
Use canGetChannelData() to get the version numbers of the second-level DLL and the driver file. This information may vary from channel to channel.
You can also use canGetChannelData() to obtain information about the firmware revision for a particular channel.
To check whether you have a specific version of CANLIB installed, you can use canProbeVersion(). This function will simply return TRUE
or FALSE
depending on whether the version you desire is installed or not.