ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 compiler define for ImageEn version number

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
davenovo Posted - Apr 25 2021 : 12:45:01
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?
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 13 2021 : 22:14:39
Thanks Dave,

From 10.0.1 you can use the define in ie.inc

{$define IEVER_****}


Nigel
Xequte Software
www.imageen.com
davenovo Posted - May 13 2021 : 10:22:31
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}
xequte Posted - May 13 2021 : 05:29:01
Hi Dave

Can you give me an example of how you would use it?

Nigel
Xequte Software
www.imageen.com
davenovo Posted - May 12 2021 : 20:35:57
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.
xequte Posted - May 12 2021 : 00:11:01
Hi Dave

The consts are:

IEMAINVER
IEMAINVERSION

They are defined in hyiedefs.

Nigel
Xequte Software
www.imageen.com
davenovo Posted - May 11 2021 : 20:49:17
Hi Nigel,
I tried this and did a search in ieSettings.pas and did not even find the text ImageEnVersion in that file. Am I missing something?
xequte Posted - Apr 26 2021 : 22:39:09
Hi Dave

No, there's not at this time, but you can parse the ImageEnVersion property:

https://www.imageen.com/help/TIEImageEnGlobalSettings.ImageEnVersion.html

Nigel
Xequte Software
www.imageen.com