Microsoft Visual C++ MFC. Win95 WinNT


Except - 2


MB_OK | MB_ICONSTOP);

 

else if(ptrException -> m_cause ==

CFileException::diskFull)

MessageBox(NULL,"The disk is full", "Exception",

MB_OK | MB_ICONSTOP);

 

else MessageBox(NULL,"File Exception", "Exception",

MB_OK | MB_ICONSTOP);

 

ptrException -> Delete();

}

 

// CException

//

catch(CException* ptrException)

{

MessageBox(NULL,"Exception", "Exception",

MB_OK | MB_ICONSTOP);

ptrException -> Delete();

}

//

catch(...)

{

MessageBox(NULL,"Another Exception", "Exception",

MB_OK | MB_ICONSTOP);

}

 

return 0;

}

try This file is absent. , , Windows 95 Windows NT. This file is absent , CFileException .

, , , , . , File Not Found.

, catch. return. .

CFileException . AfxThrowFileException:

void AfxThrowFileException(int cause, LONG lOsError = 1);

cause . m_cause CFileException (. ). lOsError , .