首页 > 其他 > 详细

ARX工程必须使用release模式编译

时间:2015-01-23 12:58:44      阅读:294      评论:0      收藏:0      [点我收藏+]
在添加如下代码保证debug版本的arx文件也是使用MFC的release库
 
// ‘DEBUG workaround‘ below prevents the MFC or ATL #include-s
// from pulling in "afx.h" that would force the debug CRT through
// #pragma-s.
#if defined(_DEBUG) && !defined(_FULLDEBUG_)
#define _DEBUG_WAS_DEFINED
#undef _DEBUG
#pragma message (" Compiling MFC header files in release mode.")
#endif
 
#include  MFC相关头文件
 
 
#ifdef _DEBUG_WAS_DEFINED
#define _DEBUG
#undef _DEBUG_WAS_DEFINED
#endif

 

ARX工程必须使用release模式编译

原文:http://www.cnblogs.com/liaocheng/p/4243647.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!