다음을 통해 공유


AfxThrowFileException

Throws a file exception.

void AfxThrowFileException( 
   int cause, 
   LONG lOsError = -1, 
   LPCTSTR lpszFileName = NULL  
);

매개 변수

  • cause
    Specifies an integer that indicates the reason for the exception. For a list of the possible values, see CFileException::m_cause.

  • lOsError
    Contains the operating-system error number (if available) that states the reason for the exception. See your operating-system manual for a listing of error codes.

  • lpszFileName
    Points to a string containing the name of the file that caused the exception (if available).

설명

You are responsible for determining the cause based on the operating-system error code.

요구 사항

Header: afx.h

참고 항목

참조

CFileException::ThrowOsError

THROW(MFC)

개념

MFC 매크로 및 전역