CFile::SetFilePath

This method specifies the path of the file; for example, if the path of a file is not available when a CFile object is constructed, call SetFilePath to provide it.

At a Glance

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

Syntax

virtual void SetFilePath( LPCTSTR lpszNewName );

See Also

CFile, CFile::GetFilePath, CFile::CFile