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
 DEFGIF and DEFTIFF Broken?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

LanceRasmussen

USA
8 Posts

Posted - May 30 2013 :  17:07:08  Show Profile  Reply
Received the updated IE so I can install in XE4.

In my XE3 project, I can no longer compile.

DefGIF_LZWDECOMPFUNC:=GIFLZWDecompress;
DefGIF_LZWCOMPFUNC:=GIFLZWCompress;
DefTIFF_LZWDECOMPFUNC:=TIFFLZWDecompress;
DefTIFF_LZWCOMPFUNC:=TIFFLZWCompress;


I uncommented in your demo apps and it doesn't like either.

What's needed to correct, aside from commenting out?

w2m

USA
1990 Posts

Posted - May 30 2013 :  17:17:51  Show Profile  Reply
- removed global fields: iegDefaultCoresCount, iegOpSys, iegUnicodeOS, iegDefaultPreviewsZoomFilter, IEDefDialogCenter,
iegDefaultDialogFont, IEDefMinFileSize, iegAutoLocateOnDisk, iegAutoFragmentBitmap, iegUseGDIPlus,
iegPreviewImageBackgroundStyle, iegPreviewImageBackgroundColor, iegPreviewAdditionalMultipageExts,
iegMemoShortCuts, ieMeasureUnits, gSystemColors, gIsRemoteSession, gSystemDPIX, gSystemDPIY,
gDefaultDPIX, gDefaultDPIY, gMMX, gEdgeX, gEdgeY, gBorderX, gBorderY, gVScrollWidth, gHScrollHeight,
iegMinZoomDisplayGrid, iegGridPen, iegSelectionGridColor, iegMViewExplorerThumbnailExts,
DefGIF_LZWDECOMPFUNC, DefGIF_LZWCOMPFUNC, DefTIFF_LZWDECOMPFUNC, DefTIFF_LZWCOMPFUNC,
iegFileFormats, iegUseCMYKProfile, iegUseDefaultFileExists, iegMaxImageEMFSize, iegEnableCMS,
iegColorReductionAlgorithm, iegColorReductionQuality, iegObjectsTIFFTag, iegUseRelativeStreams,
iegPanZoomQualityFilter, gRedToGrayCoef, gGreenToGrayCoef

Add iesettings to uses.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

LanceRasmussen

USA
8 Posts

Posted - May 31 2013 :  14:24:31  Show Profile  Reply
I tried and it doesn't work. I still get an Undeclared identifier error.

I've verified my library path goes to the XE3 folder for the DCU's for Imageen.

I've verified my browse path goes to the source directory.

I've uninstalled and recompiled the library manually and installed the component.

I've even moved the PAS file for IESettings to be next to the DCU.
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 31 2013 :  14:51:17  Show Profile  Reply
This compiles:

Uses ieSettings;
var
iGIFLZWDecompFunc:  TGIFLZWDecompFunc;
iGIFLZWCompFunc: TGIFLZWCompFunc;
iTIFFLZWDecompFunc: TTIFFLZWDecompFunc;
iTIFFLZWCompFunc: TTIFFLZWCompFunc;
begin
  ieSettings.IEGlobalSettings.DefGIF_LZWDECOMPFUNC :=
    iGIFLZWDecompFunc;
  ieSettings.IEGlobalSettings.DefGIF_LZWCOMPFUNC := iGIFLZWCompFunc;
  ieSettings.IEGlobalSettings.DefTIFF_LZWDECOMPFUNC :=
    iTIFFLZWDecompFunc;
  ieSettings.IEGlobalSettings.DefTIFF_LZWCOMPFUNC := iTIFFLZWCompFunc;
end;

but the compiler says that
iGIFLZWDecompFunc, iGIFLZWCompFunc, iTIFFLZWDecompFunc, and
iTIFFLZWCompFunc may not be initialized.

There is no discussion in the help file and no demos use the new IEGlobalSettings. Fabrizio should update the help file and include at least one demo.

By looking over the code I am not even sure if it is necessary to set the value anymore. There are no public variables for this anymore.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

LanceRasmussen

USA
8 Posts

Posted - May 31 2013 :  17:28:05  Show Profile  Reply
Thanks William,

I can confirm that adding ieSettings.IEGlobalSettings. in front fixes the issue for me when trying to compile the sample ImageEX project when uncommenting out the above code.

Thanks!

Lance
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 31 2013 :  17:35:44  Show Profile  Reply
Please explain.

William Miller
Go to Top of Page

xequte

38615 Posts

Posted - Jun 01 2013 :  19:20:11  Show Profile  Reply
Hi

These properties exist for legacy reasons. You should not need to use them as they are initialized automatically:

IEGlobalSettings().DefGIF_LZWDECOMPFUNC
IEGlobalSettings().DefGIF_LZWCOMPFUNC
IEGlobalSettings().DefTIFF_LZWDECOMPFUNC
IEGlobalSettings().DefTIFF_LZWCOMPFUNC

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: