Dennis wants to put exception handlers in his Microsoft Foundation
Classes (MFC) program. Which of the following is the preferred
technique for MFC exception handling?
a. the use of Structured Exception Handling (SEH)
b. the use of MFC exception macros
c. the use of C++ exceptions
d. the use of status codes and an if statement为什么答案选C ???

解决方案 »

  1.   

    因为使用了MFC,当然是用MFC的try catch比较配合了。
      

  2.   

    according to MSDN documentation:1. Code that uses the C++ exception-handling keywords compiles to a slightly smaller .EXE or .DLL.2. The C++ exception-handling keywords are more versatile: They can handle exceptions of any data type that can be copied (int, float, char, and so on), whereas the (MFC) macros handle exceptions only of class CException and classes derived from it.