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 ?
AddArray Problems C++
-
- Site Admin
- Posts: 1349
- Joined: Thu Jan 01, 1970 12:00 am
- Location: Riudellots de la Selva, Catalonia
- Contact:
Hi,
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++.
Have you seen the example under: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
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/
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/