Open files of different types
In my application, when the user selects file "open" the standard file dialog box is displayed. How do I add to the list of file types (three character extensions). How would I then distinguish the files. Should I check the last three characters in LPCTSTR lpszPathName which is passed to my OnOpenDocument routine. Is there an example of this on codeguru.
Thankyou
Don
Re: Open files of different types
Goto your resources. In string table there is an indificator IDR_MAINFRAME in this string your file types are described - change it. For understanding of format look at CFileDialog constructor at help.
WBR Oak
Re: Open files of different types
Look at the docs for the CDocTemplate constructor and CDocTemplate::GetDocString.
The string used sits in the string resource table with the same resource ID as is passed to the CDocTemplate constructor.
Dave