Problem with VCL 5.0.3 with C++Builder6

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Newbie
Newbie
Posts: 2
Joined: Mon Jun 04, 2001 4:00 am

Problem with VCL 5.0.3 with C++Builder6

Post by » Tue Dec 02, 2003 12:52 pm

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 ?

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Dec 02, 2003 3:31 pm

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) ?

Newbie
Newbie
Posts: 2
Joined: Mon Jun 04, 2001 4:00 am

Post by » Wed Dec 03, 2003 4:46 pm

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.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Thu Dec 04, 2003 2:28 pm

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";

Post Reply