Hello, Is there a compiler define for the ImageEn version number.
i.e. the Delphi compiler defines VerXXX for different delphi version numbers. Does ImageEn have a similar set of defines so I can test which version number I am dealing with?
Thanks. Defining a compiler directive would be helpful in the future and easy to do. That way I can check certain things at compile time, instead of waiting for crashes, exceptions at runtime.
For any of the same reasons that you use the version compiler directives. To compile conditional code based on the version of Delphi.
In our case, we have some cracker classes where we have to access private fields from some ImageEn classes to add some functionality we need. We do this for many components and we have some code like
{$IFNDEF IEVERxxx} (where xxx is the latest version {$Message FATAL You have upgraded ImageEn from Version xxx. Check the cracker class YYY to ensure the new ImageEn version did not change the layout of the fields} {$ENDIF}