CFileDialog::GetPathName

CString GetPathName( ) const;

Return Value

The full path of the file.

Remarks

Call this function to retrieve the full path of the file entered in the dialog box. The path of the filename includes the file’s title plus the entire directory path. For example, GetPathName will return "C:\FILES\TEXT.DAT" for the file C:\FILES\TEXT.DAT.

If m_ofn.Flags has the OFN_ALLOWMULTISELECT flag set, this string contains a sequence of null-teminated strings, with the first string being the directory path of the file group selected, followed by the names of all files selected by the user. For this reason, use the GetStartPosition and GetNextPathName member functions to retrieve the next file name in the list.

CFileDialog OverviewClass MembersHierarchy Chart

See Also   CFileDialog::GetFileName, CFileDialog::GetFileExt, CFileDialog::GetFileTitle