XE5 Update 2 ambiguity TGRectF

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

XE5 Update 2 ambiguity TGRectF

Post by bdw » Wed Jan 15, 2014 3:01 am

Hi,

Just got around to compiling an app under TChart 2013.09.131119 and XE5 update 2 (hot fix 1,2,3).

As discussed in a previous thread I'm getting the abiguity error when compiling as follows :-
[bcc32 Error] VCLTee.TeeGDIPlus.hpp(73): E2015 Ambiguity between 'TGPRectF' and 'Advgdip::TGPRectF'

I had this working previously but did a clean install of TChart and lost the mods I had made.

At any rate after some head scratching and not compiling I found the following works, edit the VCLTee.TeeGDIPlus.hpp file and move the user supplied typedef's under the VclTee namespace gets things sorted, as follows :-

namespace Vcltee
{
//-- user supplied -----------------------------------------------------------
typedef Gdiplus::Graphics TGPGraphics;
typedef Gdiplus::Brush TGPBrush;
typedef Gdiplus::Pen TGPPen;
typedef Gdiplus::Font TGPFont;
typedef Gdiplus::PrivateFontCollection TGPPrivateFontCollection;
typedef Gdiplus::RectF TGPRectF;
typedef Gdiplus::PointF TGPPointF;
typedef Gdiplus::GraphicsPath TGPGraphicsPath;
typedef Gdiplus::Matrix TGPMatrix;
typedef Gdiplus::Image TGPImage;
typedef Gdiplus::Rect TGPRect;
typedef Gdiplus::PathGradientBrush TGPPathGradientBrush;
typedef Gdiplus::LinearGradientBrush TGPLinearGradientBrush;

namespace Teegdiplus
{

Yeray
Site Admin
Site Admin
Posts: 9617
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: XE5 Update 2 ambiguity TGRectF

Post by Yeray » Thu Jan 16, 2014 2:31 pm

Hello,

I've checked both the Pro and the Source code v2013.09.131119 and they seem to work fine in XE5 Update 2 with the three hotfixes.
The VCLTee.TeeGDIPlus.hpp file I see in both installations already has this:

Code: Select all

//-- user supplied -----------------------------------------------------------
typedef Gdiplus::Graphics TGPGraphics;
typedef Gdiplus::Brush TGPBrush;
typedef Gdiplus::Pen TGPPen;
typedef Gdiplus::Font TGPFont;
typedef Gdiplus::PrivateFontCollection TGPPrivateFontCollection;
typedef Gdiplus::RectF TGPRectF;
typedef Gdiplus::PointF TGPPointF;
typedef Gdiplus::GraphicsPath TGPGraphicsPath;
typedef Gdiplus::Matrix TGPMatrix;
typedef Gdiplus::Image TGPImage;
typedef Gdiplus::Rect TGPRect;
typedef Gdiplus::PathGradientBrush TGPPathGradientBrush;
typedef Gdiplus::LinearGradientBrush TGPLinearGradientBrush;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Re: XE5 Update 2 ambiguity TGRectF

Post by bdw » Thu Jan 16, 2014 7:49 pm

Hi Yeray,

Yes on my system I had to move the "user supplied" section inside the namespace declaration to avoid all the ambiguity errors that were occurring.

For me this has been an issue on each update.

Brett

anauta2014
Newbie
Newbie
Posts: 48
Joined: Tue Apr 09, 2013 12:00 am

Re: XE5 Update 2 ambiguity TGRectF

Post by anauta2014 » Fri Jan 17, 2014 9:11 am

I've also seen this issue.
With best regards
Vladimir

Post Reply