Call this member function to retrieve the full path of a specified file. For example, when you call GetFilePath to generate a message to the user about the file C:\Windows\Write\Myfile.wri, the file path, C:\Windows\Write\Myfile.wri, is returned. To return just the name of the file (Myfile.wri), call GetFileName. To return the title of the file (myfile), call GetFileTitle.
virtual CString GetFilePath( ) const;
Header File | Afx.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CFile Overview, CFile Member Functions, File Service Classes, CFile::SetFilePath, CFile::GetFileTitle, CFile::GetFileName