AddArray Problems C++

TeeChart for ActiveX, COM and ASP
Post Reply
AR
Newbie
Newbie
Posts: 9
Joined: Wed Dec 01, 2004 5:00 am

AddArray Problems C++

Post by AR » 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 ?

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Dec 07, 2004 9:13 am

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++.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply