I have an MDI application, how do I create a New Document from my View Class. I have a function in my View Class that does some calculations, then writes to a recordset. I would then like to close the document in the view and create a new one. I tried the following, but got an error 'illegal call of non-static member function' and 'cannot access protected member declared in class 'CWinApp''
//CDocument* pDoc = GetDocument();
CWinApp::OnFileNew(); // <----- ERROR HERE