Поделиться через


CDocument::GetFile

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

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

Параметры

  • 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.

Возвращаемое значение

A pointer to a CFile object.

Требования

Header: afxwin.h

См. также

Основные понятия

CDocument Class

CDocument Members

Hierarchy Chart

CDocTemplate Class