共用方式為


_ATL_DEBUG_QI

Writes all calls to QueryInterface to the output window.

#define _ATL_DEBUG_QI

Remarks

If a call to QueryInterface failed, the output window will display:

interface name - failed

See Also

Other Resources

Debugging and Error Reporting Macros

ATL Macros