Page 1 of 1

Problem upgrading from TeeChart Pro v9.07 to v2013.09

Posted: Wed Jan 29, 2014 11:23 am
by 16467841
I am attempting to upgrade TeeChart Pro from v9.07 to v2013.09, for use within C++Builder 2007 (and XE3).

Between these two versions, I understand that the default render settting has been changed from GDI to GDI+. I am now gettting the following compiler errors:

[C++Error] Teegdipapi.hpp(1179): Type mismatch in redeclaration of 'std::_max_flt'
[C++Error] float.h(90): Ealier declaration of 'std::_max_flt'

looking at the offending files, I see the following definitions of _max_flt:

In Teegdipapi.hpp:
static const Extended FLT_MAX = 3.402823E+38;

where Extended is defined earlier as
typedef long double Extended; // in sysmac.h(359)

and FLT_MAX is defined by a macro in float.h as:
#define FLT_MAX std::_max_flt

In float.h: std::_max_flt':
namespace std {
// lines omitted
extern float _RTLENTRY _EXPDATA _max_flt;
// lines omitted
}

There appears no way to exclude the header Teegdipapi.hpp from my code, despite me setting the default render mode to GDI, because C++Builde automaically addes this header in for me, in the unit containing the TeeChart component.

Please help! What can I do?

Previously, when I attempted to upgrade TeeChart Pro from v9.07 to v2013.08, I hit all sorts of problems with GDI+, owing to the files GDIPAPI.hpp, GDIPOBJ.hpp, Winapi.GDIPAPI.hpp and/or Winapi.GDIPOBJ.hpp being missing from the "\include\windows\rtl" folder fllowing a standard installation. My solution was to abandon v2013.08 for the time being. See forum post here for details: http://www.teechart.net/support/viewtop ... 418#p62418.

I am unable to upgrade to the latest version of TeeChart FOR THE SECOND TIME running. Since I have recently re-subscribed to the component, I feel I have wasted my money. Unless you can provide a suitable solution, I will no options but to abandon TeeChart for a more reliable charting component.

Andrew Bond

Re: Problem upgrading from TeeChart Pro v9.07 to v2013.09

Posted: Thu Jan 30, 2014 11:35 am
by yeray
Hello Andrew,
Geocentrix wrote:Between these two versions, I understand that the default render settting has been changed from GDI to GDI+.
Right. Note there are 3 ways to move back to GDI:
http://www.teechart.net/support/viewtop ... 355#p63355
Geocentrix wrote:I am now gettting the following compiler errors:

[C++Error] Teegdipapi.hpp(1179): Type mismatch in redeclaration of 'std::_max_flt'
[C++Error] float.h(90): Ealier declaration of 'std::_max_flt'
I've just checked TeeChart Pro v2013.09 in both RAD Studio 2007 and RAD Studio XE3 and I can create&build&run a simple VCL C++Builder project with a chart on the form. I just had to check the paths before to clean them from references to previous installations, and to make sure the good ones are on the top of the lists.
See this post for more details: http://www.teechart.net/support/viewtop ... 025#p62025

I'm investigating the conflict with _max_flt being defined both at float.h and at Teegdipapi.hpp.
Geocentrix wrote:There appears no way to exclude the header Teegdipapi.hpp from my code, despite me setting the default render mode to GDI, because C++Builde automaically addes this header in for me, in the unit containing the TeeChart component.
Give it a try to the 3rd method to use GDI in the link above. As it says:
- Set the GDI Canvas as the default Render option for the new charts you may create:
At design time, open the Options... dialog in the contextual menu (right click on the chart). Go to the New Chart tab and select GDI as the Render option.
This way the Teegdipapi.hpp shouldn't be added to your .h.
Geocentrix wrote:Previously, when I attempted to upgrade TeeChart Pro from v9.07 to v2013.08, I hit all sorts of problems with GDI+, owing to the files GDIPAPI.hpp, GDIPOBJ.hpp, Winapi.GDIPAPI.hpp and/or Winapi.GDIPOBJ.hpp being missing from the "\include\windows\rtl" folder fllowing a standard installation. My solution was to abandon v2013.08 for the time being. See forum post here for details: viewtopic.php?f=3&t=14185&p=62418#p62418.

I am unable to upgrade to the latest version of TeeChart FOR THE SECOND TIME running. Since I have recently re-subscribed to the component, I feel I have wasted my money. Unless you can provide a suitable solution, I will no options but to abandon TeeChart for a more reliable charting component.
I'm sorry to hear that. I hope we can help to find a satisfying solution for you.