Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2504

Summary: tlh file Problem importing ActiveX control to VSNet VC++ projects
Product: ActiveX TeeChart Reporter: marc meumann <marc>
Component: OthersAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: pep
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description marc meumann 2022-01-25 03:11:50 EST
When importing TeeChart AX to VC++ projects in Visual Studio .NET, the IDE creates a tlh interface mapping file for all the elements of the TeeChart Type Library.

Under the IMapPolygon interface there are two members with these names:

- Points
- GetPoints

Unfortunately, when VSNet builds the tlh file it sets the "getter" for Points to GetPoints causing a clash and compile error.

Workaround:

1. Comment one of the two elements in the tlh file if not used (if not, rename it for use), save and copy the file to a permanent location in your project folder space.

eg.
  VARIANT_BOOL Value );
  //IPolygonSeriesPtr GetPoints ( );

2. Change the import line for teechart2021.ocx i n your project from:

#import "yourpath/TeeChart2021.ocx"

to

#include "yourpath/TeeChart2021.tlh"

------

In this way the tlh file will not be regenerated every time you build the project so will not overwrite your change.

------
We are working on a permanent fix for this issue.
Comment 1 pep jorge 2022-01-25 08:20:44 EST
Fixed.
Breaking change, due to a conflict once the Visual Studio autoclass generator for VC++NET projects is done we've needed to change the following method name :

GetPoints() from IMapPolygon interface
to
GetPîxelPoints().

Available for the next TeeChart for ActiveX v2022 version.