CFileException::CFileException
Constructs a CFileException object that stores the cause code and the operating-system code in the object.
CFileException(
int cause = CFileException::none,
LONG lOsError = -1,
LPCTSTR lpszArchiveName = NULL
);
Параметры
cause
An enumerated type variable that indicates the reason for the exception. See CFileException::m_cause for a list of the possible values.lOsError
An operating-system-specific reason for the exception, if available. The lOsError parameter provides more information than cause does.lpszArchiveName
Points to a string containing the name of the CFile object causing the exception.
Заметки
Do not use this constructor directly, but rather call the global function AfxThrowFileException.
![]() |
---|
The variable lOsError applies only to CFile and CStdioFile objects. The CMemFile class does not handle this error code. |
Требования
Header: afx.h