Page 1 of 1

Compile Error When Trying To SetStyle For scPoint Series

Posted: Wed Oct 22, 2008 5:19 am
by 15048748
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

Just A Missing Include File...

Posted: Wed Oct 22, 2008 6:17 am
by 15048748
Oh, well, I was just missing the pointseries.h include and also needed to add pointseries.h and pointseries.cpp to my project...