Page 1 of 1

Error when compiling projects with Rad-Studio XE

Posted: Mon Nov 07, 2016 7:03 am
by 16578912
Hi,

I've upgrade to the newest version of TeeChartPro 2016.19 and when building my projects I get error messages:
[BCC32 Error] TeeMapSeries.hpp(240): E2285 Could not find a match for 'TTeePolygons::DynamicArray(int)'
Full parser context
Main.cpp(6): #include Main.h
Main.h(26): #include c:\Components\TeeChartPro\Compiled\Delphi15\Include\TeeImport.hpp
TeeImport.hpp(25): #include c:\Components\TeeChartPro\Compiled\Delphi15\Include\TeeWorldSeries.hpp
TeeWorldSeries.hpp(28): #include c:\Components\TeeChartPro\Compiled\Delphi15\Include\TeeMapSeries.hpp
TeeMapSeries.hpp(32): namespace Teemapseries
TeeMapSeries.hpp(221): class TTeePolygonGroups
[BCC32 Error] TeeMapSeries.hpp(240): E2031 Cannot cast from 'int' to 'TTeePolygons'
Full parser context
Main.cpp(6): #include Main.h
Main.h(26): #include c:\Components\TeeChartPro\Compiled\Delphi15\Include\TeeImport.hpp
TeeImport.hpp(25): #include c:\Components\TeeChartPro\Compiled\Delphi15\Include\TeeWorldSeries.hpp
TeeWorldSeries.hpp(28): #include c:\Components\TeeChartPro\Compiled\Delphi15\Include\TeeMapSeries.hpp
TeeMapSeries.hpp(32): namespace Teemapseries
TeeMapSeries.hpp(221): class TTeePolygonGroups
I'm using Rad-Studio XE (C++ personality).

Best Regards,
Grzegorz

Re: Error when compiling projects with Rad-Studio XE

Posted: Mon Nov 07, 2016 4:06 pm
by yeray
Hello Grzegorz,

We are investigating the cause of the problem.
In the meanwhile the error doesn't appear if you edit the TeeMapSeries.hpp changing the line:

Code: Select all

    HIDESBASE TTeePolygonGroup* __fastcall Add(const System::UnicodeString AName, const System::UnicodeString ACode = L"", const TTeePolygons AShapes = (TTeePolygons)(0x0));
For this:

Code: Select all

    HIDESBASE TTeePolygonGroup* __fastcall Add(const System::UnicodeString AName, const System::UnicodeString ACode = L"", const TTeePolygons* AShapes = (TTeePolygons*)(0x0));

Re: Error when compiling projects with Rad-Studio XE

Posted: Wed Nov 09, 2016 11:56 am
by 16578912
Hello

It works. Thank You.