Page 1 of 1

AddArray Problems C++

Posted: Mon Dec 06, 2004 10:12 am
by 9525039
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 ?

Posted: Tue Dec 07, 2004 9:13 am
by Chris
Hi,
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
Have you seen the example under:
TeeChart Pro v7 ActiveX\Examples\Visual C++\Version 6\Add data arrays ?

this should be a good guide for you in the creation of array in vc++.