Compilation error in TeCanvas.hpp

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
PurL
Newbie
Newbie
Posts: 2
Joined: Wed Jan 05, 2005 5:00 am

Compilation error in TeCanvas.hpp

Post by PurL » Tue May 30, 2006 9:50 am

Hello,

I develop under BCB5Pro and I use TeeChart Pro v7.07 with sources.
I develop two applications.
In the first, I have no problem with TeeChart.
But in the second, I can not compile and I have this error in TeCanvas.hpp :
Error E2091 : Functions can not return arrays or functions
(this is a translation from french and I am not a star in english, sorry)

And the IDE opens TeCanvas.hpp and places the cursor on line 831 where there is this code line :

Code: Select all

virtual void __fastcall DeleteBitmap(void);
I already check directory path and there are same in two applications
I check (in .BPR file) there are no reference of older teechart composant (v4) installed with BCB and it is clean.

The configuration is the same for these two applications :(

If I comment this line, it's OK but I am afraid to disturb the component.
I found on internet newsgroup that DeleteBitmap is a macro defined in windowsx.h

Can you help me ?

Thanks,

PurL

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

Post by Narcís » Tue May 30, 2006 10:02 am

Hi PurL,

Have you compiled and installed TeeChart sources to the IDE using Recompile tool provided with TeeChart sources installation? You'll find the tool at TeeChart's program group.
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

PurL
Newbie
Newbie
Posts: 2
Joined: Wed Jan 05, 2005 5:00 am

Post by PurL » Tue May 30, 2006 10:05 am

It's OK :)

My second application include windowsx.h.
I opened this file and I comment the line where the macro DeleteBitmap was defined and the compilation is OK.

Conclusion :
TeeChart is incompatible with the use of windowsx.h because they have the same function/macro name called DeleteBitmap.

PurL

Post Reply