VC++: Error generating teechart2018.tlh

TeeChart for ActiveX, COM and ASP
Post Reply
Patrick
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Contact:

VC++: Error generating teechart2018.tlh

Post by Patrick » 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:

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

Pep
Site Admin
Site Admin
Posts: 3306
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: VC++: Error generating teechart2018.tlh

Post by Pep » Mon Apr 30, 2018 7:27 pm

Hello Patrick,

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

Patrick
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Contact:

Re: VC++: Error generating teechart2018.tlh

Post by Patrick » Fri May 04, 2018 1:23 pm

These are for MFC, right? We are using ATL though.

All the best,
Patrick

Post Reply