I just want to open a new instance of my document class! But everytime I try OpenDocumentFile(NULL);, I get a big crash because that function is trying to parse the input of the function, accessing element  when there is none!
Where should I call OpenDocumentFile(NULL) from to create a new instance of the document? Right now I am calling it from an instance of a CMDIChildWnd window. This window has a list ctrl in it, when I double click an item, I am calling OpenDocumentFile().
Is that wrong? What should I do?
Also, is it possible to pass some initialization parameters to the document class? Otherwise I will have to have the document class searching around for its data!