Page 1 of 1

VC++: Error generating teechart2018.tlh

Posted: Mon Apr 30, 2018 8:47 am
by 6928952
Hi,

We try to update our application to current TeeChart ActiveX 2018. With TeeChart ActiveX v5 it was possible to let VC++ automatically generate the needed typelib headers like this:

Code: Select all

#import "TeeChart5.ocx" named_guids, rename("LoadImage","TeeChartLoadImage"), rename("TextOut","TeeChartTextOut")
We tried the same with TeeChart ActiveX 2018:

Code: Select all

#import "TeeChart2018.ocx" named_guids, rename("LoadImage","TeeChartLoadImage"), rename("TextOut","TeeChartTextOut")
but we get compile errors.

Code: Select all

error C2259: 'TeeChart::ITeeBasePath': cannot instantiate abstract class
error C2259: 'TeeChart::ITeePoint2D': cannot instantiate abstract class
error C2365: 'TeeChart::IMapPolygon::GetPoints': redefinition; previous definition was 'data member'
error C2063: 'TeeChart::IMapPolygon::GetPoints': not a function
error C2350: 'TeeChart::IMapPolygon::GetPoints' is not a static member
This is very easy to reproduce, simply create an Win32 VC++ project and put the import statement above into stdafx.h

How can I generate the typelib headers with current TeeChart ActiveX 2018?

Patrick

Re: VC++: Error generating teechart2018.tlh

Posted: Mon Apr 30, 2018 7:27 pm
by Pep
Hello Patrick,

you can find all the TeeChart ActiveX 2018 typelib header file under the "\Utilities\New VC Classes" folder of the TeeChart installation.

Re: VC++: Error generating teechart2018.tlh

Posted: Fri May 04, 2018 1:23 pm
by 6928952
These are for MFC, right? We are using ATL though.

All the best,
Patrick