Quote Originally Posted by GCDEF View Post
You're not listening to the advice being offered. That tends to stop the help from coming.

As mentioned, data belongs in the document class.

Your dialog needs access to your view so it can invalidate it. I told you a couple of ways to set that up.

In OnDraw, call GetDocument() to get the data from the document object.

If you're going to ask for help, you should listen to it.
Code:
void CContourPlotView::OnDraw(CDC* pDC)
{
	CContourPlotDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// TODO: add draw code for native data here

}
This code is already writeen. The variable i ha used for 2D vector is vec.
when i use vec in ONDRAW(). it shows undeclared identifier

I have attached the complete set of codes above in the discussion i had written in ONPLOT() in the contourplotdlg.cpp which is dialog
Please have a look at it..