This topic has not yet been rated - Rate this topic

CFileDialog::GetFileName

Call this function to retrieve the name of the filename entered in the dialog box.

CString GetFileName( ) const;

The name of the file.

The name of the file includes both the prefix and the extension. For example, GetFileName will return "TEXT.DAT" for the file C:\FILES\TEXT.DAT.

If m_ofn.Flags has the OFN_ALLOWMULTISELECT flag set, you should call GetStartPosition and GetNextPathName to retrieve a file pathname.

Header: afxdlgs.h

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ