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
 PROBLEMS with NEW version
 New Topic  Reply to Topic
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

graphman

259 Posts

Posted - May 15 2013 :  02:36:09  Show Profile  Reply
[BCC32 Error] UnitPrint.cpp(275): E2451 Undefined symbol 'ievpCENTER'
[BCC32 Error] UnitPrint.cpp(276): E2451 Undefined symbol 'iehpCENTER'
[BCC32 Error] UnitPrint.cpp(277): E2451 Undefined symbol 'ievpTOP'
[BCC32 Error] UnitPrint.cpp(278): E2451 Undefined symbol 'ievpBOTTOM'
[BCC32 Error] UnitPrint.cpp(279): E2451 Undefined symbol 'iehpLEFT'
[BCC32 Error] UnitPrint.cpp(280): E2451 Undefined symbol 'iehpRIGHT'
[BCC32 Error] UnitPrint.cpp(281): E2451 Undefined symbol 'iesFITTOPAGE'
[BCC32 Error] UnitPrint.cpp(284): E2451 Undefined symbol 'iesNORMAL'
[BCC32 Error] UnitPrint.cpp(286): E2451 Undefined symbol 'iesFITTOPAGESTRETCH'
[BCC32 Error] UnitPrint.cpp(287): E2451 Undefined symbol 'iesSPECIFIEDSIZE'

fab

1310 Posts

Posted - May 15 2013 :  02:51:54  Show Profile  Reply
You should include "imageenio".
Go to Top of Page

graphman

259 Posts

Posted - May 15 2013 :  02:58:19  Show Profile  Reply
I havn't changed my project
and it's working with previouse version without problems

Why?
Go to Top of Page

fab

1310 Posts

Posted - May 15 2013 :  03:01:11  Show Profile  Reply
I really do not know: these symbols have always been there.
Go to Top of Page

graphman

259 Posts

Posted - May 15 2013 :  03:07:17  Show Profile  Reply
What do you mean with "include "imageenio"" ???
Go to Top of Page

graphman

259 Posts

Posted - May 15 2013 :  03:09:22  Show Profile  Reply
in UnitPrint.h I have
#include "imageenio.hpp"
Go to Top of Page

fab

1310 Posts

Posted - May 15 2013 :  03:09:34  Show Profile  Reply
It should be enough to insert:

#include "ImageEnIO.hpp"
Go to Top of Page

graphman

259 Posts

Posted - May 15 2013 :  03:12:08  Show Profile  Reply
you have changed
iehpCENTER
to
ievpCenter
etc.
Go to Top of Page

graphman

259 Posts

Posted - May 15 2013 :  03:25:35  Show Profile  Reply
How to change these strings in the new version

//Installations for operation about a TIF and GIF
DefGIF_LZWDECOMPFUNC = GIFLZWDecompress;
DefGIF_LZWCOMPFUNC = GIFLZWCompress;
DefTIFF_LZWDECOMPFUNC = TIFFLZWDecompress;
DefTIFF_LZWCOMPFUNC = TIFFLZWCompress;
Go to Top of Page

graphman

259 Posts

Posted - May 15 2013 :  03:58:49  Show Profile  Reply
I try to use (C++ Builder 2010)

IEGlobalSettings().DefGIF_LZWDecompFunc = GIFLZWDecompress;

result

[BCC32 Error] Unit1.cpp(265): E2268 Call to undefined function 'IEGlobalSettings'
Go to Top of Page

fab

1310 Posts

Posted - May 15 2013 :  04:37:45  Show Profile  Reply
IEGlobalSettings() is defined in iesettings unit, so you should include it.
Go to Top of Page

fab

1310 Posts

Posted - May 15 2013 :  04:38:38  Show Profile  Reply
quote:
you have changed
iehpCENTER
to
ievpCenter
etc.


You're right, please accept my apologies.
Go to Top of Page

graphman

259 Posts

Posted - May 15 2013 :  05:40:46  Show Profile  Reply
> IEGlobalSettings() is defined in iesettings unit, so you should include it.

[BCC32 Error] iesettings.hpp(146): E2238 Multiple declaration for '_fastcall TIEImageEnGlobalSettings::TIEImageEnGlobalSettings()'

[BCC32 Error] iesettings.hpp(88): E2344 Earlier declaration of '_fastcall TIEImageEnGlobalSettings::TIEImageEnGlobalSettings()'

Go to Top of Page

graphman

259 Posts

Posted - May 16 2013 :  11:38:24  Show Profile  Reply
Help me please ASAP
Go to Top of Page

w2m

USA
1990 Posts

Posted - May 16 2013 :  13:35:02  Show Profile  Reply
I never use C++Builder... that said... try this:
Add ieSettings to uses.

To access the settings try:
IEGlobalSettings()->DefGIF_LZWCOMPFUNC = GIFLZWCompress;
IEGlobalSettings()->DefGIF_LZWDECOMPFUNC = GIFLZWDecompress;

If that does not work email support directly.


William Miller
Go to Top of Page

fab

1310 Posts

Posted - May 17 2013 :  00:48:13  Show Profile  Reply
Following w2m post: you have to add...

#include "iesettings.hpp"
#include "giflzw.hpp"

in header file of your unit (ie Unit1.h). Example:


//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "ieview.hpp"
#include "imageenview.hpp"
#include "iesettings.hpp"
#include "giflzw.hpp"
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published: // IDE-managed Components
TImageEnView *ImageEnView1;
private: // User declarations
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif


Do not add iesettings.hpp in your cpp file.
Go to Top of Page

graphman

259 Posts

Posted - May 17 2013 :  01:03:34  Show Profile  Reply
I added this string only
#include "iesettings.hpp"
in my H-file

result
[BCC32 Error] iesettings.hpp(146): E2238 Multiple declaration for '_fastcall TIEImageEnGlobalSettings::TIEImageEnGlobalSettings()'

[BCC32 Error] iesettings.hpp(88): E2344 Earlier declaration of '_fastcall TIEImageEnGlobalSettings::TIEImageEnGlobalSettings()'
Go to Top of Page

fab

1310 Posts

Posted - May 17 2013 :  01:14:21  Show Profile  Reply
I'm sorry, it didn't happen with C++Builder XE2/3... but only with previous C++Builder versions.
It seems a problem of HPP generator of C++Builder, when it compiles Delphi sources.

I hope to find a workaround soon, in the meantime, just remove the line 88 from iesettings.hpp. It works in my tests.
Go to Top of Page

graphman

259 Posts

Posted - May 17 2013 :  02:03:04  Show Profile  Reply
Thanks
Please inform me about workaround

Currently your fix is working OK
Go to Top of Page

fab

1310 Posts

Posted - May 17 2013 :  02:10:02  Show Profile  Reply
The problem comes from TIEImageEnGlobalSettings private constructor (this is a singleton). It seems that when Delphi 2010 compiles a class with a private constructor, it declares two constructors in the C++ header (one private and one public!).
The unique workaround I can imagine now is to move the Delphi constructor in the public area.
Go to Top of Page

graphman

259 Posts

Posted - May 17 2013 :  02:40:02  Show Profile  Reply
What string I need to move?
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
Jump To: