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::OsErrorToException
CFileException                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  static int OsErrorToException( LONG lOsError );
 
  Parameter   Description
 
  <lOsError>  An operating-system-specific error code.
 
  Remarks
 
  This static function returns an enumerator that corresponds to a given
  <lOsError> value. If the error code is unknown, then the function
  returns CFileException::generic.
 
  Return Value
 
  Enumerated value that corresponds to a given operating-system error
  value.
 
  Example
 
  ASSERT( CFileException::OsErrorToException( 5 ) ==
                    CFileException::accessDenied );
 
 
  See Also
 
  CFileException::ErrnoToException
 
 
                                     -♦-