DOCERR: OPENFILENAME lpstrInitialDir Documented IncorrectlyLast reviewed: July 23, 1997Article ID: Q86920 |
3.10
WINDOWS
kbprg kbdocerr
The information in this article applies to:
SUMMARYThe lpstrInitialDir member of the OPENFILENAME data structure is documented incorrectly on page 376 of the "Microsoft Windows Software Development Kit: Programmer's Reference, Volume 3: Message, Structures, and Macros" manual for version 3.1. The description states that if the lpstrFile member of the same structure specifies a valid path, the common dialog box procedure will use the path specified by this string instead of the path specified by lpstrInitialDir. This statement is incorrect; the common dialog box procedure uses the path specified by lpstrInitialDir regardless of the path specified in lpstrFile. If lpstrInitialDir is set to NULL, the system sets the initial directory to the current directory.
MORE INFORMATIONAn application can implement the documented functionality through either of two methods, as follows:
Method 1If lpstrFile specifies a valid path and a complete filename such as \\AUTOEXEC.BAT, perform the following three steps:
Method 2If lpstrFile specifies a valid path and a file filter such as \\*.BAT, perform the following four steps, as follows:
|
Additional reference words: 3.10 docerr
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |