When I create an application based on CEditView, I can't seem add a CRecordView as an option. From Mainfrm.cpp, I try to add a menu option to create a new CRecordView, but if I try to even declare an object of this type, I get an error indicating that the Constructor (the Destructor is, too) is protected. So, I found out that CRecordView is a runtime class, but how do I create it?

void CMainFrame::OnMyRecordView()
{

}

What do I put in this function if I can't create an object of type CRecordView?

Thanks for any help!



"Try not. Do, or do not. There is no try." - Yoda