Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CFileException::CFileException
CFileException                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CFileException( int cause = CFileException::none,
                  LONG lOsError =  -1 );
 
  Parameter   Description
 
  <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.
 
  Remarks
 
  Constructs a CFileException object that stores the cause code and the
  operating-system code in the object.
 
  Do not use this constructor directly, but rather call the global
  function AfxThrowFileException.
 
  NOTE: The variable <lOsError> applies only to CFile and CStdioFile
        objects. The CMemFile class does not handle this error code. More
        information specifically about the operating system is available
        through the run-time function _dosexterr (MS-DOS only).
 
  See Also
 
  AfxThrowFileException
 
 
                                     -♦-