AddArray Problems C++
Posted: Mon Dec 06, 2004 10:12 am
I am having problems with the AddArray method
I set up my graph and add a New series
m_Graph->AddSeries((TeeChart::ESeriesClass)scFastLine);
then I try to add an Array of values
double anArray[2]
m_Graph->GetaSeries(index)->AddArray(2,anArray[0],anArray[0]);
or
m_Graph->GetaSeries(index)->AddArray(2,anArray,anArray);
or
m_Graph->GetaSeries(index)->AddArray(2,&anArray,&anArray);
also tried
_variant_t Values[2];
m_Graph->GetaSeries(index)->AddArray(2,Values,Values);
and
m_Graph->GetaSeries(index)->AddArray(2,&Values,&Values);
all are met with the Addarray function returning E_UNEXPECTED as am HRESULT.
I must be doing something very silly but just cant see what at the moment
Any advise ?
I set up my graph and add a New series
m_Graph->AddSeries((TeeChart::ESeriesClass)scFastLine);
then I try to add an Array of values
double anArray[2]
m_Graph->GetaSeries(index)->AddArray(2,anArray[0],anArray[0]);
or
m_Graph->GetaSeries(index)->AddArray(2,anArray,anArray);
or
m_Graph->GetaSeries(index)->AddArray(2,&anArray,&anArray);
also tried
_variant_t Values[2];
m_Graph->GetaSeries(index)->AddArray(2,Values,Values);
and
m_Graph->GetaSeries(index)->AddArray(2,&Values,&Values);
all are met with the Addarray function returning E_UNEXPECTED as am HRESULT.
I must be doing something very silly but just cant see what at the moment
Any advise ?