Page 1 of 1

How to use #import directive with TeeChart

Posted: Fri Apr 01, 2005 7:40 am
by 6925573
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.

Posted: Mon Apr 04, 2005 10:39 am
by Pep
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);