分类: WINDOWS
2007-11-27 18:25:46
chinaunix网友2009-07-16 13:33:57
我也找了一个方法 虽然我也不理解 在stdafx.h 头文件里include "afx.h" 在stdafx.cpp文件里加下面的就OK了 #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #define new DEBUG_NEW ///////////////////////////////////////////////////////////////////////////// // global data // The following symbol used to force inclusion of this module for _USRDLL #ifdef _X86_ extern "C" { int _afxForceUSRDLL; } #else extern "C" { int __afxForceUSRDLL; } #endif
chinaunix网友2009-07-16 13:33:57
我也找了一个方法 虽然我也不理解 在stdafx.h 头文件里include "afx.h" 在stdafx.cpp文件里加下面的就OK了 #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #define new DEBUG_NEW ///////////////////////////////////////////////////////////////////////////// // global data // The following symbol used to force inclusion of this module for _USRDLL #ifdef _X86_ extern "C" { int _afxForceUSRDLL; } #else extern "C" { int __afxForceUSRDLL; } #endif