DOC: GetFileTitle() & GetFileName() Docs Are Switched (142203)



The information in this article applies to:

  • The Microsoft Foundation Classes (MFC), when used with:
    • Microsoft Visual C++, 32-bit Editions 4.0

This article was previously published under Q142203

SUMMARY

The description of the string returned by the CFileDialog member functions GetFileTitle() and GetFileName() in the Visual C++ 4.0 documentation is switched.

This documentation error was corrected in Visual C++ version 4.1.

MORE INFORMATION

The Visual C++ 4.0 documentation for CFileDialog::GetFileTitle() states:
   "The title of the filename includes both the name and the extension.
    For example, GetFileTitle will return "TEXT.DAT" for the file
    C:\FILES\TEXT.DAT."
				
This is incorrect. Calling CFileDialog::GetFileTitle() for the file mentioned will return TEXT.

Similarly, the Visual C++ 4.0 documentation for CFileDialog::GetFileName() states:
   "The name of the file includes only its prefix, without the path or
    the extension.  For example, GetFileName will return "TEXT" for the
    file C:\FILES\TEXT.DAT."
				
This is also incorrect. Calling CFileDialog::GetFileName() for the above file will return "TEXT.DAT".

Modification Type:MajorLast Reviewed:10/17/2003
Keywords:kbBug kbCmnDlgFileO kbdocerr kbdocfix kbfix kbVC410fix KB142203