What are the causes of a "Cannot Create Empty Document" error and how do I fix it?
I have run it through the debugger and stepped through the system code; here is the line that it is breaking on:
if (! (AfxGetApp()-> OnCmdMsg (ID_FILE_NEW, 0, NULL, NULL))
AfxGetApp()->OnCmdMsg is returning 1. Presumably it should be returning 0. I have had no experience with writing or debugging low-level system code, so I have no idea what is going on. This application is breaking on a Win95 machine. It runs fine on a WinNT machine. I am coding in Visual C++ 5.0.