My new map editor works on my system but it asserts on 2 other systems that it has been tried on. The assertion is coming from AddDocTemplate() within the actual MFC source. Obviously doc template is null but it shouldn't be.
I've also tested the view class out after creation and it too is NULL. Very strange that it does not assert on my system. It's also very strange because most of the code that is the problem was not written by me, it was put there by the project wizard.
Also am having lots of troubles creating a new CScrollView document in an SDI app. If the constructor is protected then how can I create a new instance of the class? Or is it already instantiated when the document, view, and app classes are created? It seems to me from the design that the philosophy is each is instantiated when the application starts. So File->New should only clear the existing SDI document and view and start a new one (of course it should prompt to save), not actually instantiate an entirely new class/object as in the case of a MDI app.
If this is the case, then why is my CScrollView evaluating to NULL in OnFilenew() in my CMainFrame class?
So are the document and view valid immediately after the program starts or is there something I need to do to create them? I'm quite lost.