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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Compiler errors after update to 4.3.1
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

swestner

17 Posts

Posted - May 14 2013 :  04:11:27  Show Profile  Reply
Hello,

after upgrading to 4.3.1 I get the following compiler errors:

[DCC Error] uImageSupport.pas(139): E2003 Undeclared identifier: 'gDefaultDPIX'
[DCC Error] uImageSupport.pas(139): E2003 Undeclared identifier: 'gDefaultDPIY'
[DCC Error] uImageSupport.pas(1136): E2003 Undeclared identifier: 'DefGIF_LZWDECOMPFUNC'
[DCC Error] uImageSupport.pas(1137): E2003 Undeclared identifier: 'DefGIF_LZWCOMPFUNC'
[DCC Error] uImageSupport.pas(1138): E2003 Undeclared identifier: 'DefTIFF_LZWDECOMPFUNC'
[DCC Error] uImageSupport.pas(1139): E2003 Undeclared identifier: 'DefTIFF_LZWCOMPFUNC'

when compilig lines like

ImageEnProc._CopyBitmaptoDIBEx( aBitmap, 0, 0, aBitmap.Width-1, aBitmap.Height-1, gDefaultDPIX, gDefaultDPIY)

initialization
DefGIF_LZWDECOMPFUNC:=GIFLZWDecompress;
DefGIF_LZWCOMPFUNC:=GIFLZWCompress;
DefTIFF_LZWDECOMPFUNC:=TIFFLZWDecompress;
DefTIFF_LZWCOMPFUNC:=TIFFLZWCompress;
end.

What have I change to bring it to work again?

Greetings

Stefan Westner

fab

1310 Posts

Posted - May 14 2013 :  04:22:27  Show Profile  Reply
Now global settings are enclosed in a single global class. You can get an instance of this class using IEGlobalSettings(), so you have to replace:

gDefaultDPIX with IEGlobalSettings().DefaultDPIX
gDefaultDPIY with IEGlobalSettings().DefaultDPIY
DefGIF_LZWDECOMPFUNC with IEGlobalSettings().DefGIF_LZWDECOMPFUNC
DefGIF_LZWCOMPFUNC with IEGlobalSettings().DefGIF_LZWCOMPFUNC
DefTIFF_LZWDECOMPFUNC with IEGlobalSettings().DefTIFF_LZWDECOMPFUNC
DefTIFF_LZWCOMPFUNC with IEGlobalSettings().DefTIFF_LZWCOMPFUNC

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: