how come commenting out m_pmainwnd=&dlg will cause AfxMessageBox to work???/
explain...if so what is the statement used for???