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


CFileException::ThrowErrno

Constructs a CFileException object corresponding to a given nErrno value, then throws the exception.

static void PASCAL ThrowErrno(
   int nErrno, 
      LPCTSTR lpszFileName = NULL
);

Параметры

  • nErrno
    An integer error code as defined in the run-time include file ERRNO.H.

  • lpszFileName
    A pointer to the string containing the name of the file that caused the exception, if available.

Пример

CFileException::ThrowErrno(EACCES);  // "access denied"

Требования

Header: afx.h

См. также

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

CFileException Class

CFileException Members

Hierarchy Chart

CFileException::ThrowOsError