Page 1 of 1

TChart Pro v2015 ActiveX : ClearChart Error

Posted: Thu Jun 18, 2015 10:56 pm
by 16673658
I had integrated TChart2015 ActiveX and it was working. But I am not sure what I changed but now seem to be getting an error clearing the chart (pChart->ClearChart()).

Has anything changed? Here is the code snippet:

int numCharts = pParent->GetNumTotalCharts();
UINT tempID = 99 + numCharts;

CTChart* pChart = new CTChart();
pChart->Create(NULL, WS_CHILD | WS_VISIBLE, newChartRect, this, tempID );
pChart->ClearChart();

Re: TChart Pro v2015 ActiveX : ClearChart Error

Posted: Fri Jun 19, 2015 11:09 am
by yeray
Hello,

I can clear a simple chart without problems using the latest v2015.0.0.2.
If you are sure it was a change in your code, try going back to try to find the breaking change.