码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-01-23 13:01:01      阅读:166      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!