Page 1 of 1
const bool argument to TChartPen::SetVisible()
Posted: Wed Jun 21, 2006 2:35 am
by 9341715
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.
Posted: Wed Jun 21, 2006 8:06 am
by narcis
Hi Bob,
I'm not able to reproduce this issue, should I follow any concrete step to reproduce it?
Thanks in advance.
Posted: Wed Jun 21, 2006 6:45 pm
by 9341715
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.
Posted: Thu Jun 22, 2006 8:49 am
by narcis
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.
Posted: Thu Jun 22, 2006 5:42 pm
by 9341715
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.
Posted: Fri Jun 23, 2006 7:37 am
by narcis
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.