ImageGear for C and C++ on Windows v20.0 - Updated
IG_version_numbers
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Version Functions > IG_version_numbers

This function returns three integers telling you the version of ImageGear that your application is currently using, including the last update installed.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_version_numbers ( 
        LPINT lpVerMajor, 
        LPINT lpVerMinor, 
        LPINT lpVerUpdate 
);

Arguments:

Name Type Description
lpVerMajor LPINT Far pointer to an INT variable in which will be stored the Major version number of the version of ImageGear that you are using.
lpVerMinor LPINT Far pointer to an INT variable in which will be stored the Minor version number of the version of ImageGear that you are using.
lpVerUpdate LPINT Far pointer to an INT variable in which will be stored the Update (bug fix) number, reflecting any updates you have received and installed in this version of ImageGear.

Return Value:

Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

MFC

Example:

 
Copy Code
INT       nVerMaj, nVerMin, nVerUpdate;
IG_version_numbers ( &nVerMaj, &nVerMin, &nVerUpdate );

Remarks:

The Major and Minor version numbers are, for example, the "10" and "0" respectively, for the first release of ImageGear 10.0 (ImageGear19).

The above numbers appear in accucnst.h. Your application can compare the accucnst.h constants with the numbers returned here to verify that the proper version of the ImageGear DLL is being loaded and used.

Is this page helpful?
Yes No
Thanks for your feedback.