Page 1 of 1

Compilation error in TeCanvas.hpp

Posted: Tue May 30, 2006 9:50 am
by 9340490
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

Posted: Tue May 30, 2006 10:02 am
by narcis
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.

Posted: Tue May 30, 2006 10:05 am
by 9340490
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