const bool argument to TChartPen::SetVisible()

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
BYOB
Newbie
Newbie
Posts: 4
Joined: Fri Apr 22, 2005 4:00 am
Location: California, USA

const bool argument to TChartPen::SetVisible()

Post by BYOB » Wed Jun 21, 2006 2:35 am

The Techart.hpp file in version 7.0.7 is showing an argument to TChartPen::SetVisble as "const bool" instead of bool. Because of this, the linker can't find the mangeled name. It gets fixed is I delete the "const" (bad C++ coding form anyway), and the linker can find the function.

Do you have to edit these out by hand?

Thanks,
Bob Berens.

PS - I'm using CBuilder6.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jun 21, 2006 8:06 am

Hi Bob,

I'm not able to reproduce this issue, should I follow any concrete step to reproduce it?

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

BYOB
Newbie
Newbie
Posts: 4
Joined: Fri Apr 22, 2005 4:00 am
Location: California, USA

Post by BYOB » Wed Jun 21, 2006 6:45 pm

Narcis,

I have an application that uses the "Visible" property on a TChartPen object. I got an undefined reference to TChartPen::SetVisibility() when I linked. This is when I changed the "const bool" argument to that function to a "bool" in the .hpp file. I did a build and the symbol was found OK.

I compared the 7.0.4 definition of SetVisibility with the 7.07 definition and noticed that the argument to SetVisibility() was "bool", not "const bool". That is why I tried dropping the "const".

The .hpp files were from the 7.0.7 binary installer that I very recently downloaded.

Bob.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jun 22, 2006 8:49 am

Hi Bob,

Thanks for the information but I couldn't reproduce the issue here using v7.07 and using TChartPen's Visible property. Could you please send us an example we can run "as-is" to reproduce the problem here?

You can post your files at news://www.steema.net/steema.public.attachments newsgroup.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

BYOB
Newbie
Newbie
Posts: 4
Joined: Fri Apr 22, 2005 4:00 am
Location: California, USA

Post by BYOB » Thu Jun 22, 2006 5:42 pm

I'll try to put something together. My workaround is allowing me to to proceed, but I thought there might be something useful for Steema if it turned out to be a real problem.

Thanks once again,
Bob.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jun 23, 2006 7:37 am

Hi Bob,

Thanks for your collaboration. It is really important for us being able to reproduce the issues found so that we can fix them.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply