When trying to compile and application that functions well with teechart 2012 with the new Teechart 2013 I get various messages like this
[BCC32 Error] TeeGDIPOBJ.hpp(47): E2238 Multiple declaration for '_fastcall TGPRegion::TGPRegion(void *)'
and
[BCC32 Error] TeeGDIPOBJ.hpp(290): E2238 Multiple declaration for '_fastcall TGPBitmap::TGPBitmap(void *)'
All the references in the project to the old Teechart 2012 has been removed and the new references to Teechart 2013 Added.
Creating a simple project with only a TChar component in it, compiles well.
I can see that there are two overloading definitions that are in conflict
__fastcall TGPRegion(void * nativeRegion)/* overload */;
__fastcall TGPRegion(HRGN hRgn)/* overload */;
HRGN is a typedef of HANDLE and HANDLE is a typedef of void *
but if it were an error then it should not compile the simple application
Any idea about what is happening and how to solve it?
XE and TGdiPOBJ.hpp errors on compile
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: XE and TGdiPOBJ.hpp errors on compile
Hi Servando,
TeeChart 2013 uses GDI+ by default. It's a known issue that this is sometimes failing with C++ Builder. To solve the problem set the rendering canvas back to GDI at the Chart -> 3D -> Render tab in the chart editor and remove TeeGDIPlus unit references in your project.
TeeChart 2013 uses GDI+ by default. It's a known issue that this is sometimes failing with C++ Builder. To solve the problem set the rendering canvas back to GDI at the Chart -> 3D -> Render tab in the chart editor and remove TeeGDIPlus unit references in your project.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: XE and TGdiPOBJ.hpp errors on compile
I have found that the problem occurs when compiling with the NO_STRICT directive.
in STRICT mode the application compiles well with GDI o GDI+
Thanks for all.
Servando.
in STRICT mode the application compiles well with GDI o GDI+
Thanks for all.
Servando.
-
- Newbie
- Posts: 1
- Joined: Thu Feb 23, 2012 12:00 am
Re: XE and TGdiPOBJ.hpp errors on compile
Hi,
We have the same problem in v2013.08.130521 on C++ Builder XE2.
As workarround we add the following code at line 55 of the file VCLTee.TeeGDIPlus.hpp
But we hope Steema solve this problem.
Att,
Reinaldo César Guedes
Brazil
We have the same problem in v2013.08.130521 on C++ Builder XE2.
As workarround we add the following code at line 55 of the file VCLTee.TeeGDIPlus.hpp
Code: Select all
class DELPHICLASS TGPPathGradientBrush;
Att,
Reinaldo César Guedes
Brazil