Compile Error When Trying To SetStyle For scPoint Series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
tommyvee
Newbie
Newbie
Posts: 2
Joined: Mon Mar 31, 2008 12:00 am

Compile Error When Trying To SetStyle For scPoint Series

Post by tommyvee » Wed Oct 22, 2008 5:19 am

Hi,
I am using Tee Chart Pro V8 ActiveX Control in native C++ VS 2005.
I am trying to change the symbol displayed in a Point Series with no success.

The following lines get the compiler error below..

m_chart.AddSeries(scPoint);
m_chart.Series(i).GetAsPoint().GetPointer().SetStyle(psCircle);

error C2027: use of undefined type 'CPointSeries'

Yet Intellisense lists GetAsPoint, GetPointer, and SetStyle as available choices in the popup menu.

Using GetAsLine().GetPointer().SetStyle(psCircle) compiles but I get a runtime error of "Bad Class Cast"" or something like that.

Does anyone know how to avoid the compiler error or to work around the problem so that I can change the symbols displayed in the scPoint series??
Thanks,
Tom

tommyvee
Newbie
Newbie
Posts: 2
Joined: Mon Mar 31, 2008 12:00 am

Just A Missing Include File...

Post by tommyvee » Wed Oct 22, 2008 6:17 am

Oh, well, I was just missing the pointseries.h include and also needed to add pointseries.h and pointseries.cpp to my project...

Post Reply