Click to See Complete Forum and Search --> : HELP!!! How to open files of any format in my application?


dearphael
April 3rd, 1999, 04:23 AM
Hi,

I derived my CView class from CEditView. my program is able to open small text files but if i try to open any other formats, it is
unable to open them. what should i add so that it would be able to open any file format like in wordpad? Please help

Raphael

Alek
April 3rd, 1999, 04:17 PM
CRichEdit

dearphael
April 4th, 1999, 12:16 AM
Hi,

My applications contains a lot of source codes now so is there an easy way to directly edit some of the functions in CView class so that it derives from CRichEdit?

also, i tried to create a new application, deriving it from CRichEditView and i could open any file, except that no contents are displayed, only a blank document. Please help

Raphael

Masaaki
April 4th, 1999, 12:31 AM
Hi.

You can get sample code of Wordpad.
Use MSDN help to get this.
Use Search and type Wordpad.

Hope for help.
-Masaaki Onishi-

dearphael
April 4th, 1999, 12:48 AM
Hi,

thank you but I have already gone through the code. and everything is so complex because there are more than 10 classes that i do not know where to start. how do we normally display the contents of a file when the user clicks File-Open?