CFileDialogImpl::GetFileName

LPCTSTRCFileDialogImpl::GetFileName(void)

Get the name of the file

Defined in: CommonDialogs.h

Return Value

Returns the selected file name

Comments

Call this function to retrieve the name of the filename entered in the dialog box. 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.