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.
How to use #import directive with TeeChart
Hi,
using the following code (with #includes) works fine here :
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);
Pep Jorge
http://support.steema.com
http://support.steema.com