I have a valid CRichEditView pointer that I retrieved by doing this from within my CMainFrame class:
CWinApp::GetNextDocTemplate(...);// to get the CDocTemplate
CDocTemplate::GetNextDoc(...);// to get the CRichEditDoc
pRichView = CRichEditDoc::GetView();// to get the CRichEditView
I have two huge problems:
1) it doesn't make the view active (actually, nothing happens)
2) when I exit the app, i get the standard winXP "Application has encountered a problem and needs to close. We are sorry for the inconvenience." send error report dialog...
What am I doing wrong??? The view that I retrieve from GetView() is valid... Should I do more than just the line SetActiveView() ?