HOWTO: How to Support Two File Extensions per MFC Document Type (141921)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.0
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
This article was previously published under Q141921 SUMMARY
Applications built with the Microsoft Foundation Classes (MFC) document or
view architecture have at most one file extension associated with each
document type. This default file extension, if specified, is stored in the
document template string stored in the string table.
It is often useful to associate two file extensions with a given document
type. This article describes a technique you can use to allow two file
extensions to be stored in the document template string. Through class
derivation and function overrides, it is possible to associate both file
extensions with the document template.
REFERENCES
Please see the following article in the Microsoft Knowledge Base:
198538 DocMgrEx.exe Assoc Multiple File Extensions w/1 Doc Type
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbDocView kbhowto KB141921 |
---|
|