Page 1 of 1

XE5 Update 2 ambiguity TGRectF

Posted: Wed Jan 15, 2014 3:01 am
by 9236183
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
{

Re: XE5 Update 2 ambiguity TGRectF

Posted: Thu Jan 16, 2014 2:31 pm
by yeray
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;

Re: XE5 Update 2 ambiguity TGRectF

Posted: Thu Jan 16, 2014 7:49 pm
by 9236183
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

Re: XE5 Update 2 ambiguity TGRectF

Posted: Fri Jan 17, 2014 9:11 am
by 16565588
I've also seen this issue.