Re: Can't display a file in an SDI MFC application
Here are a few comments a few years on for what its worth:
CEditView has a method called SerializeRaw() which is different to all the other Serialize() methods. For loading Serialize() expects the first two words to be size information. If you have a normal text file and use Serialize(), then the first two characters ascii value is interpreted as numbers. Then Serialize() reads that much data, which may be over the end of the file and look like garbage. SerializeRaw() expects a normal text file with no size information in the first couple of words.
Allan