Page 1 of 1

unable to build cppbuilder project that includes TeeTree

Posted: Thu Feb 25, 2010 10:24 pm
by 9344292
Hi. This is my first post!

I am a registered user of version 7 but am now evaluating ver 8 and the 2010 beta, in Rad Studio 2010, and I am having a problem.

In short, whether I install the 8.06 trial or the latest 2010 beta of TeeChart, if I include a TeeTree component in a CPPBuilder project, I get the error message that a comma (,) is expected on line 436 of TeeTree.hpp, which makes no obvious sense to me.

As I said it doesn't matter which trial I use, and it can be the simplest project imaginable, i.e., just a form with a TeeTree component on it and absolutely no additional code -- and the error shows up every time I try to compile.

This is probably something extremely simple and obvious, but it seems a big mystery to me as I never had any such similar trouble...

Has anyone else trying to use TeeTree in a CPPBuilder project seen this problem?

Thanks.

Re: unable to build cppbuilder project that includes TeeTree

Posted: Fri Feb 26, 2010 9:12 am
by narcis
Hi wolfie,

Welcome :!:

Thanks for reporting the issue. The problem seems to be what you mentioned in Embarcadero's forums:

https://forums.embarcadero.com/thread.j ... 455#216455

Adding a semicolon at the end of TCustomTreePanel'ls definition solves the problem:

Code: Select all

typedef TCustomTree TCustomTreePanel;
Anyway, I wonder why this happens since in BDS and RAD Studio same TeeChart and TeeTree packages are used for both Delphi and C++ Builder. Actually, C++ Builder packages are generated from Delphi's so this makes me think this could be a RAD Studio bug. This is how TCustomTree and TCustomTreePanel are defined in Delphi:

Code: Select all

  TCustomTree=class;

  TCustomTreePanel=TCustomTree;
We will investigate the issue further and keep you posted. Also, if this can be reproduced consistently outside TeeChart/TeeTree it would be worth submitting the issue to Embarcadero's Quality Central too.

Re: unable to build cppbuilder project that includes TeeTree

Posted: Sat Feb 27, 2010 7:07 am
by 9344292
Thanks for the reply. I added the semicolon.

Re: unable to build cppbuilder project that includes TeeTree

Posted: Mon Mar 01, 2010 9:50 am
by narcis
Hi wolfie,

We have modified the package compilation tool to check such cases and automatically add necessary semicolons.