Page 1 of 1
Problem with VCL 5.0.3 with C++Builder6
Posted: Tue Dec 02, 2003 12:52 pm
by 5887513
I have some problem using TeeChartPro V5.0.3 with C++Builder6
in debug mode.
Print Preview -> Error message
class TComboBox not found
and no preview dialog
TeeCommander -> Export Tab
error reading from from Button1->OnClick: invalid property value
in release mode both dialogs are working.
Seems to be related with the design packages.
What can I do ?
Posted: Tue Dec 02, 2003 3:31 pm
by Marjan
Hi.
Seems to me there are two possibilities:
1) BCB is referencing and using two different TeeChart version files at the same time. In this case the solution is to check all BCB search/library/include path directories and remove old TeeChart files prior to installing (reinstalling) TeeChart 5.03 for BCB.
2) TeeChart packages included with TeeChart installer were not correctly compiled (or copied from compile directory to installer). In this case the only solution is to recompile/reinstall TeeChart from source code. Do you have TeeChart source code license ?
PS : Do you get this error if you try to use runtime packages (the "Build with the runtime packages" option) ?
Posted: Wed Dec 03, 2003 4:46 pm
by 5887513
Hi,
I got the error only without "Build with runtime packages" option
to 1)
I have compared the various files in cbuilder6\lib directory with the
files in the installed directory
K:\Borland\TeeChart Pro v5.03 for C++ Builder 6\CBuilder6\Lib\obj
It seems the installer did not overwrite
TeePrevi.dfm and
TeeExpForm.dfm
from the original installation
to 2)
I copied the files from the installation.
It works now without "Build with runtime packages" option.
I could not completely recompile the sources.
There are date differences between Teechart installation directory and Teechart source installation.
Additional problem:
In the ide the chart -> export chart dialog has many bitmap formats.
Running the program the export chart dialog has only wmf and bmpp format. What is the reason ? The same with runtime packages option.
Posted: Thu Dec 04, 2003 2:28 pm
by Marjan
5887513 wrote:It seems the installer did not overwrite
TeePrevi.dfm and
TeeExpForm.dfm
That's strange indeed.
5887513 wrote:
I could not completely recompile the sources.
What kind of errors do you get when you compile TeeChart sources ?
5887513 wrote:
There are date differences between Teechart installation directory and Teechart source installation.
That's true. But if you recompile everything from sources, then all files will have the same datetime stamp (more less).
5887513 wrote:
In the ide the chart -> export chart dialog has many bitmap formats.
Running the program the export chart dialog has only wmf and bmpp format. What is the reason ? The same with runtime packages option.
TeeChart doesn't automatically register all image formats (for export). At design time this is done by including TeeImage*.bpl package in the package list. At runtime, this can be done by manually adding appropriate export units to the unit header and pragma link lines. Something like this:
Code: Select all
#include "TeeJPEG.hpp";
#include "TeePNG.hpp";
#pragma link "TeeJPEG";
#pragma link "TeePNG";
You can also register all export formnats by including TeeEditPRO unit in header i.e.:
Code: Select all
#include "TeeEditPRO.hpp";
#pragma link "TeeEditPRO";