MFC question: I'm using MDI and I want to destroy a document if the user tries to open an invalid file. I'm unsure of the location to call doc->OnCloseDocument. I can determine that the file is invalid in CDocument::Serialize. Thanks /prog/!
C++ is a good language. It is not a perfect language because it inherits from C. C is a flawed language where many things are left undefined. C is an ancient artifact that serves no purpose outside of the domain of kernel design. Because of the improvements made upon C to form C++, beginning programmers and veteran programmers alike may be led astray, thinking that modern C usage is a good idea. It is a mistake to believe the success of C++ justifies the continued use and popularity of C. Just because C++ is successful does not mean the language it has inherited from is of high quality.