|
-
August 26th, 2003, 08:24 AM
#1
Can't display a file in an SDI MFC application
Hello all,
I'm trying to develop a very simple text editor with VC++, the MFC and the SDI framework. I'm using the CEditView class and I started off with the SDI application skeleton from the VC++ wizard. I am experiencing weird symptoms - or at least they seem so to me.
I can enter text in my view and it gets displayed properly, but whenever I try to open a file (using WinApp::OnFileOpen), all I get on my screen are | characters and not the actual text contained in the file. My code is very similar to the multipad sample except that it's using the SDI framework and not the MDI one, and I'm having a hard time figuring out what's wrong.
My apologies if I'm not describing my problem well, I am a total beginner with VC++ and the MFC :-). Any help would be greatly appreciated.
Thanks,
Maxime
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|