Cview class calling Function in Dlg.
Posted on 2000-04-20
in my CScrollView i need to display back the old values to the dialog box. so if the g_bTestFeed is checked, it will call a function in the dialog class. however, problem aries as the m_WithLoad is pointed to null as i step through the program.
//if the above 2 lines are commented no problem aries
if (dlg.DoModal() == IDOK)
bTestFlag = !bTestFlag;
m_WithLoad.EnableWindow(bTestFlag); //m_WithLoad pointed to NULL
i discovered that if the function is not called, no problem aries, m_WithLoad is not pointed to null . so what should be the correct method or function to be included to solve this problem.