今天遇到了一个奇怪的事情如下:
#include "stdafx.h"
#include "ImageDsp.h"
#include "ImageDsp1.h"
#include "ximage.h" //CxImage类头文件
#include "FindBCharacter.h" //识别模块头文件
#include "FindChar.h"#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#include "FindBCharacter.h" //识别模块头文件
#include "FindChar.h"
红色字体中的头文件放到兰色位置时,就出现了c:\stl\stlport\new(36) : fatal error C1083: Cannot open include file: '../include/new(THIS_FILE, 36)': Invalid argument
这个错误,不知道为什么,请高手指教下,头文件包含顺序方面的问题
另外,下面这些是什么意思,谢谢.
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#include "stdafx.h"
#include "ImageDsp.h"
#include "ImageDsp1.h"
#include "ximage.h" //CxImage类头文件
#include "FindBCharacter.h" //识别模块头文件
#include "FindChar.h"#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
#include "FindBCharacter.h" //识别模块头文件
#include "FindChar.h"
红色字体中的头文件放到兰色位置时,就出现了c:\stl\stlport\new(36) : fatal error C1083: Cannot open include file: '../include/new(THIS_FILE, 36)': Invalid argument
这个错误,不知道为什么,请高手指教下,头文件包含顺序方面的问题
另外,下面这些是什么意思,谢谢.
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
解决方案 »
- vs2010怎么设置堆栈大小?知道的麻烦说下~谢谢
- error PRJ0019: A tool returned an error code from "Performing registration"
- 两个创建无模式对话框的dll调用正常,卸载时,卸载第一个dll将第二个dll中的对话框窗体也卸载了??
- 急,在线等待.关于BitBlt以及TransparentBlt的问题,只有50分了,会陆续加的,谢谢~
- 请问如何展开CListCtrl
- 请问如何才能够获取CComboBox控件的id?
- 如果我想随机的数在1--10来选,rand函数怎么写呀
- ?SOS? 在双显示系统中(有两个显卡)如何编程控制另一个显示器??
- MFC如何在程序里响应任务管理器结束进程的操作
- 用sleep(1000)计时间但到59秒后下一个不是0秒而是09秒,如何才能让它正常显示?
- 在ONDRAW函数中,在画出位图之前如何得到位图的尺寸?
- 怎么在当前窗体内调用exe
这段代码是条件编译,作用如1楼所说。
建议LZ再试试,另外如果用Release编译,这两个位置就完全一样了。
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif