How to use #import directive with TeeChart

TeeChart for ActiveX, COM and ASP
Post Reply
zealsoft
Newbie
Newbie
Posts: 2
Joined: Fri Nov 15, 2002 12:00 am
Location: Beijing, China

How to use #import directive with TeeChart

Post by zealsoft » Fri Apr 01, 2005 7:40 am

I'm using TeeChart v5. I want to use #import directive, but I encounter some errors:

F:\TestProjects\TeeTest\TeeTestDlg.cpp(181) : error C2039: 'GetAsPolar' : is not a member of '_com_ptr_t<class _com_IIID<struct ISeries,&struct __s_GUID _GUID_b6c104ac_fb89_11d4_93c9_006008a7eed4> >'
F:\TestProjects\TeeTest\TeeTestDlg.cpp(181) : error C2228: left of '.AddPolar' must have class/struct/union type

Any idea?
Thanks in advance.

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

Post by Pep » Mon Apr 04, 2005 10:39 am

Hi,

using the following code (with #includes) works fine here :

Code: Select all

#include "DemoPolarDlg.h"
#include "TeeChartDefines.h"
#include "Series.h"
#include "PolarSeries.h"
#include "Pen.h"

	m_chart.AddSeries(scPolar);
	m_chart.Series(0).FillSampleValues(10);
	m_chart.Series(0).GetAsPolar().GetPen().SetWidth(3);

Post Reply