I'm completely new to MFC.. so please excuse my ignorance..
I used the wizard to make a simple app.. Toolbars, menus etc.
So i've got a few classes, the ones im interested in are CMapEditorApp and
CMapEditorDoc.
In CMapEditor.cpp I created all the D3D stuff, which renders my level, and
allows it to be edited. It all works fine.
The problem comes when I want to do a Save as - I have to use CMapEditorDoc
to get the filename returned by the Save As dialogue.. But I can't think of
a way of passing this name back to CMapEditorApp for it to use the save
function..
I can't just put the save function in CMapEditorDoc because the data is all
stored in a structure in mapeditor..
Hope this makes sense.. I've got myself confused.
What i want ideally is a function to get a pointer to the CMapEditorApp
class, but I dont know how because I can't find where it's defined..