I am working on an SDI Doc/View MFC application. The app seems to work fine (visually in release mode), but the document pointer returned from MyView::GetDocument() is always NULL, and I looked into it a little, and found that m_pDocument is also NULL (it's the value cast as my document type returned by GetDocument()) Can anyone help me out on this? I do need to be able to actually get the doc pointer, as it will be necessary for the remaining functionality to go in. Thank you in advance for your time and efforts in this matter.

--Victor