经常需要在MFC 和 ATL/WTL之间切换。 有了下边的宏,就方便一些了。。。。 #ifdef _MFC_VER #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif #else #define TRACE ATLTRACE #define ASSERT ATLASSERT #endif 相关文章: