CFile::GetFilePath

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.

Syntax

virtual CString GetFilePath( ) const;

At a Glance

Header File Afx.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CFile Overview, CFile Member Functions, File Service Classes, CFile::SetFilePath, CFile::GetFileTitle, CFile::GetFileName