Linking CodeGear C++ 2007 and TeeChartPRO 8.0.2

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SN05
Newbie
Newbie
Posts: 3
Joined: Mon Nov 12, 2007 12:00 am
Location: France - Lyon

Linking CodeGear C++ 2007 and TeeChartPRO 8.0.2

Post by SN05 » Wed May 21, 2008 3:15 pm

I'm trying to migrate some applications from
* Borland C++ Builder Enterprise V6 + TeeChartPRO V5.03

To
* CodeGear Studio 2007 (C++) + TeeChartPRO 8.0.2

When linking:

The error from ILINK32 is "Can not open file CANDLECH.OBJ"

When building without execution packages (for deployment, I need an executable only without dll files or packages) (the option is unchecked).

When comparing directory contents :
In "..\TeeChart Pro v5.03 for C++ Builder 6\CBuilder6\Lib\obj" I had aways an .obj file (for C++ linker) matching a .dcu file(for delphi).

In the 8.0.2 release organisation, I can not find these obj files.
Are they missing?

How can I link my applications ?

Thanks.

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 May 22, 2008 8:05 am

Hi SN05,

Using CodeGear's RAD Studio 2007 only one set of packages works for both Delphi and C++ Builder personalities.

In C++ Builder personality you should go to Project->Options->Paths and Defines, check that Include path list has $(TEEINCPATH) on top of the list, Library path has $(TEELIBPATH) and $(TEELIBPATH)\OBJ on top of the list, close that dialog and go to Tools->Options->Environment Options->Environment Variables->User overrides and check that TEEINCPATH points to v8.02's Include folder and TEELIBPATH points to v8.02's Lib folder.

If this doesn't help don't hesitate to let us know.
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

SN05
Newbie
Newbie
Posts: 3
Joined: Mon Nov 12, 2007 12:00 am
Location: France - Lyon

CG 2007 and TeeChartPRO 8.0.2 migration from 5.0.3

Post by SN05 » Thu May 22, 2008 4:47 pm

An other PB occurs before building a project:

When I try to load an old cpp file in a new project (Add files to project), I can not load the TeeChart Objects from the BC++ Form.
The error messages are:

dclado100.blp not found
Class TChart not found
Class TChartPreviewer not found.
(with "Ignore", "Cancel", "Ignore all" question for each case).

Can you help me?

Thanks.

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 May 23, 2008 7:19 am

Hi SN05;
dclado100.blp not found
Please read this thread about the very same issue.
Class TChart not found
Class TChartPreviewer not found.
You should check that C++ Builder has TeeChart properly installed before loading this *.cpp file. Please check that TeeChart pakcages are enabled at Prjoect->Options->Packages and search paths are as I told in my previous message.
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

SN05
Newbie
Newbie
Posts: 3
Joined: Mon Nov 12, 2007 12:00 am
Location: France - Lyon

Post by SN05 » Tue May 27, 2008 3:28 pm

It is OK for building with your instructions.

But I can not load .cpp file with a Form containing TeeChart objects created with BC++ V6 and TeeChartPRO V5.0.3).
In CG studio, the cpp code is visible but the form is not (the icon to switch from Unit to Form is disabled). It looks like CG studio could not load the old .dfm file, and the form is not visible in the form list.
Notice that I can create a new form with new TeeChart objects (in CG 2007).

What do you think of that ?

Does that mean I will have to re-design all forms containing TeeChart objets created with the old above versions ?

Thanks for your help.

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 May 28, 2008 10:03 am

Hi SN05,

No, I think this is because of an issue with old C++ Builder's versions project files. It's most likely that that package names are hard coded and not updated in projects files (.bpr o .bdsproj). The only way to remove old packages from there is manually editing them (with notepad, for example) and remove old package references. Since the hardcode package version can't be found now that's the reason of those error messages.

Hope this helps!
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