CFile::SetFilePath

virtual void SetFilePath( LPCTSTR lpszNewName );

Parameters

lpszNewName

Pointer to a string specifying the new path.

Remarks

Call this function to specify 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.

Note   SetFilePath does not open the file or create the file; it simply associates the CFile object with a path name, which can then be used.

CFile OverviewClass MembersHierarchy Chart

See Also   CFile::GetFilePath, CFile::CFile