다음을 통해 공유


CException::CException

This member function constructs a CException object.

explicit CException(
   BOOL bAutoDelete 
);

Parameters

  • b_AutoDelete
    Specify TRUE if the memory for the CException object has been allocated on the heap. This will cause the CException object to be deleted when the Delete member function is called to delete the exception. Specify FALSE if the CException object is on the stack or is a global object. In this case, the CException object will not be deleted when the Delete member function is called.

Remarks

You would normally never need to call this constructor directly. A function that throws an exception should create an instance of a CException-derived class and call its constructor, or it should use one of the MFC throw functions, such as AfxThrowFileException, to throw a predefined type. This documentation is provided only for completeness.

Requirements

Header: afx.h

See Also

Reference

CException Class

Hierarchy Chart

Other Resources

CException Members