In CWGraph control i am tring to use PlotY methode, how to pass DataY arrray as it is a VARIANT type. Can I have complete piece of code to impelement and try. Foloowing is the code i am trying.....void CNi_GraphDlg::OnButtonPlot()
{
// TODO: Add your control notification handler code here
int i;
CString buf;
VARIANT ydata = {0,1,2,3,4,5,6,7,8,9};
VARIANT xfirst = {0};
VARIANT plotperrow = {0};
VARIANT xinc = {0};
m_graph.SetEnabled(TRUE);
m_graph.SetDefaultxInc(5);
m_graph.SetDefaultxFirst(3);
m_graph.SetCaption("Plasma Current");
buf = m_graph.GetCaption();
m_graph.SetImmediateUpdates(TRUE);
// AfxMessageBox(buf);
m_graph.PlotY(ydata, xfirst, xinc, plotperrow);
// m_graph.AboutBox();
}