This topic has not yet been rated - Rate this topic

CFile::GetFilePath 

Call this member function to retrieve the full path of a specified file.


virtual CString GetFilePath( ) const;

The full path of the 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.

See the example for GetFileName.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.