Page 1 of 1

E2010 Incompatible types: 'TCustomTeePanel' and 'TChart'

Posted: Fri Feb 24, 2012 5:49 pm
by 16461468
Delphi Xe2, VCL v2011, Windows 7 (64bit)

while converting one of my applications from Delphi 2010, I get the following...

[DCC Error] SSFormUnit2.pas(4067): E2010 Incompatible types: 'TCustomTeePanel' and 'TChart'

on the line TeeSaveToJPegFile(Chart1, PicFilePath+'Chart1.jpg', Chart1.Width, Chart1.Height);

there seems to be an issue with this Method? as though TChart is not recognizes as TCustomTeePanel anymore?

Re: E2010 Incompatible types: 'TCustomTeePanel' and 'TChart'

Posted: Fri Feb 24, 2012 6:21 pm
by 16461468
remove all referances to Te* units from any/all uses clauses and let the compiler reload the VCLTee.* versions into your uses clause (or change all the names manually to the newly named versions)

also, the VCL2011 installer did "not" remove all native (bundled) tee* units, files, dcu(s), etc. so I had to remove them manually from the $(BDS)... LIB, BIN and other directories

Re: E2010 Incompatible types: 'TCustomTeePanel' and 'TChart'

Posted: Tue Feb 28, 2012 4:05 pm
by yeray
Hi,

This is the same here, isn't it?
Please, don't open several threads with the same question.