共用方式為


_ATL_NO_VARIANT_THROW

Suppresses the CComVariant Class from throwing exceptions.

#define _ATL_NO_VARIANT_THROW

Remarks

Define this macro if your module must not throw exceptions. When this macro is defined, CComVariant will not throw exceptions. By default, this macro is not defined.

See Also

Other Resources

ATL Macros

ATL Macros Alphabetical Reference

Active Template Library (ATL) Concepts