by IDEAL Software Support » Thu Oct 09, 2014 6:55 am
It is written in the documentation that VpeGetVersion() returns the major version number in the hi-byte and the minor version number in the lo-byte.
To extract the hi-byte and lo-byte, you can use the following code (C/C++):
int version = VpeGetVersion();
int ver_major = version >> 8;
int ver_minor = version & 0xff;
For other programming languages, you can use the div (division) and mod (modulo) operators:
int version = VpeGetVersion();
int ver_major = version div 256;
int ver_minor = version mod 256;
For v7.0, ver_major is 7 and ver_minor is 0.