please help
-
can some1 help me to draw a pie chart using MSCHART control.I am unable to obtain sufficient info from the msdn docs.
-
can some1 help me to draw a pie chart using MSCHART control.I am unable to obtain sufficient info from the msdn docs.
I'm also very confused :confused: with the poor information about using MS Chart in VC++ provided by msdn. Look at these examples, they'll help you: Using the MS Chart control in VC++[^] and MS Chart[^] Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
-
I'm also very confused :confused: with the poor information about using MS Chart in VC++ provided by msdn. Look at these examples, they'll help you: Using the MS Chart control in VC++[^] and MS Chart[^] Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
thanx 4 the piece of info.but i happened to see that info earlier.i seem to have a serious problem in inderstanding the COleSafeArray .can u plz explain why we create an array DWORD numElements[] = {10, 10}; .is that a one dimensional array or something else.im totalled.plz mail me at rajeshvv007@yahoo.com if u aint mind. thanx 4 helpin.....
-
thanx 4 the piece of info.but i happened to see that info earlier.i seem to have a serious problem in inderstanding the COleSafeArray .can u plz explain why we create an array DWORD numElements[] = {10, 10}; .is that a one dimensional array or something else.im totalled.plz mail me at rajeshvv007@yahoo.com if u aint mind. thanx 4 helpin.....
Taking the first example, COleSafeArray is the chart data and simplyfing it's:
COleSafeArray saRet; SAFEARRAYBOUND sab[2]; // each dimension bounds. In this case: 2 dimensions sab[0].cElements = NUM_DISCS; // rows sab[1].cElements = m_iCols; // number of columns + 1 (the first is for putting the row labels) sab[0].lLbound = sab[1].lLbound = 1; // lower bounds of each dimension saRet.Create(VT_BSTR, 2, sab); // Create the safe-array: Create(data type, dimensions, data) m_msChart.SetChartData(saRet.Detach()); // Initialize the data into the chart
I hope it helps, Marc Soleda. ... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.