MFC中THIS_FILE[]怎样使用?
//CPP文件中的预编译命令#ifdef_DEBUG#undefTHIS_FILEstaticcharTHIS_FILE[]="a.c";//报错地方#definenew...
//CPP文件中的预编译命令
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]="a.c"; //报错地方
#define new DEBUG_NEW
#endif
//调试信息
Compiling...
Music.cpp
F:\SEC\SEC\Music.cpp(7) : error C2628: 'CMciControl' followed by 'char' is illegal (did you forget a ';'?)
F:\SEC\SEC\Music.cpp(7) : error C2538: new : cannot specify initializer for arrays
Error executing cl.exe.
Creating browse info file...
SEC.exe - 2 error(s), 0 warning(s)
麻烦哪位明白的大虾指点一下啊
s.400@163com 展开
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]="a.c"; //报错地方
#define new DEBUG_NEW
#endif
//调试信息
Compiling...
Music.cpp
F:\SEC\SEC\Music.cpp(7) : error C2628: 'CMciControl' followed by 'char' is illegal (did you forget a ';'?)
F:\SEC\SEC\Music.cpp(7) : error C2538: new : cannot specify initializer for arrays
Error executing cl.exe.
Creating browse info file...
SEC.exe - 2 error(s), 0 warning(s)
麻烦哪位明白的大虾指点一下啊
s.400@163com 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询