VC++: Error generating teechart2018.tlh
Posted: Mon Apr 30, 2018 8:47 am
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:
We tried the same with TeeChart ActiveX 2018:
but we get compile errors.
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
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")
Code: Select all
#import "TeeChart2018.ocx" named_guids, rename("LoadImage","TeeChartLoadImage"), rename("TextOut","TeeChartTextOut")
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
How can I generate the typelib headers with current TeeChart ActiveX 2018?
Patrick