CDocument::GetFile

virtual CFile* GetFile( LPCTSTR lpszFileName**, UINT** nOpenFlags**, CFileException*** pError );

Return Value

A pointer to a CFile object.

Parameters

lpszFileName

A string that is the path to the desired file. The path may be relative or absolute.

pError

A pointer to an existing file-exception object that indicates the completion status of the operation.

nOpenFlags

Sharing and access mode. Specifies the action to take when opening the file. You can combine options listed in the CFile constructor CFile::CFile by using the bitwise OR (|) operator. One access permission and one share option are required; the modeCreate and modeNoInherit modes are optional.

Remarks

Call this member function to get a pointer to a CFile object.

CDocument OverviewClass MembersHierarchy Chart

See Also   CDocTemplate