VpeGetVersion

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VpeGetVersion

Postby frankena » Tue Oct 07, 2014 1:55 pm

Hi,

I'm using VPE 7.0 ddl version.

I want to check which version of VPE my program is using. Therefor I check the value of VpeGetVersion. This is what I get:

VpeGetVersion: 1792
VpeGetReleaseNumber: 0
VpeGetBuildNumber: 7731

What should I do to get the proper versionnumber of VPE?

Regards,

Arnold
frankena
 
Posts: 28
Joined: Tue Feb 01, 2005 11:57 am

Re: VpeGetVersion

Postby 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.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: VpeGetVersion

Postby frankena » Thu Oct 09, 2014 10:52 am

Thanks
frankena
 
Posts: 28
Joined: Tue Feb 01, 2005 11:57 am


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 9 guests

cron