XE and TGdiPOBJ.hpp errors on compile
Posted: Fri May 24, 2013 11:21 am
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?
[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?