Microsoft Visual C++ MFC. Win95 WinNT



- CException


, ++ . , MFC.

, MFC, . CException . . , MFC, CException:

CMemoryException <- | <- CException

CFileException <- |

CArchiveException <- |

CNotSupportedException <- |

CResourceException <- |

CDaoException <- |

CDBException <- |

COleException <- |

COleDispatchException <- |

CUserException <- |

, MFC, - . , , , Open CFile, CFileException.

, MFC, . catch, CException , CException:

try

{

// ,

}

// CMemoryException

catch(CMemoryException* ptrException)

{

// ...

//

ptrException -> Delete;

}

, MFC CException ( , CException). MFC. , . Delete, CException. CException , , delete.