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.
AfxThrowFileException
                                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void PASCAL AfxThrowFileException( int cause, LONG lOsError = -1 );
 
  Parameter   Description
 
  <cause>     An integer that indicates the reason for the exception. For
              a list of the possible values, see
              CFileException::m_cause.
 
  <lOsError>  An operating-system-specific reason for the exception, if
              available. The <lOsError> parameter provides more
              information than <cause>.
 
  Remarks
 
  Throws a CFileException. You are responsible for determining the cause
  based on the operating system error code. This is a helper function used
  in the implementation of the Microsoft Foundation classes.
 
  Call this function when you implement your own low-level file operations
  in a derived file class.
 
  See Also
 
  CFileException::ThrowOsError
 
 
                                     -♦-