This method retrieves 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.
Header file: | Afx.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
virtual CString GetFilePath( ) const;
CFile::SetFilePath, CFile::GetFileTitle, CFile::GetFileName