The information in this article applies to:
SYMPTOMS
GetOpenFileName() is the application programming interface (API) for the
open file common dialog box. This API displays the long filenames (LFNs) on
NTFS and HPFS.
CAUSEThe original design of GetOpenFileName() uses a filename list that is space-delimited when the OFN_ALLOWMULTISELECT flag is specified. Thus, there is no programmatic way to determine which string tokens are complete filenames or fragments of a complete name with spaces. STATUSThis behavior is by design. MORE INFORMATIONHistorically, FAT filenames that contained embedded spaces were branded as "illegal," even though the specifications of the FAT file system do not impose such a restriction. For example, many of the MS-DOS command-line utilities do no allow the user to specify filenames with embedded spaces, because of difficulties that would be introduced in parsing the command line. Under Windows NT, the command utilities have been enhanced to support such names if they are in quotation marks. Additional query words: File Open OFN_ALLOWMULTISELECT long filename lfn
Keywords : kbCmnDlg kbCmnDlgFileO kbCmnDlgSave kbNTOS310 kbNTOS350 kbGrpUser |
Last Reviewed: December 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |