DOC: CFileDialog Filter String Won't Work Under Windows 95Last reviewed: July 10, 1997Article ID: Q145687 |
2.20 4.00
WINDOWS NT
kbprg kbdocerr kbdocfix
The information in this article applies to:
SUMMARYIf sample code that lists an example filter string at the bottom of the CFileDialog::CFileDialog page in the Class Library Reference is used as a filter string with a CFileDialog, the filter string will not work properly on the Windows 95 Explorer-style common file dialog.
MORE INFORMATIONThe Explorer-style common dialog will not accept spaces around the '|' vertical bar characters used to separate elements of the filter string. The line of sample code should read: static char BASED_CODE szFilter[] = "Chart Files (*.xlc)|*.xlc|Worksheet Files(*.xls)|*.xls| Data Files (*.xlc;*.xls)|*.xlc;*.xls|All Files (*.*)|*.*||";This documentation problem was fixed in Visual C++ 4.1.
|
KBCategory: kbprg kbdocerr kbdocfix
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |