调试时出现以下错误,跟踪到MFC源码,出错,怎么解决,是不是要修改一些环境的设置。希望各位大侠提出宝贵的意见!言者有分!
说明:我在生成Dialog based 时选择了Automation自动化支持。
d:\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'
d:\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function
d:\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters
d:\microsoft visual studio\vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE'
d:\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function
d:\microsoft visual studio\vc98\include\new(37) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct std::nothrow_t &)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl operator new(voi
d))(unsigned int)'
d:\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
d:\microsoft visual studio\vc98\include\new(41) : error C2061: syntax error : identifier 'THIS_FILE'
d:\microsoft visual studio\vc98\include\new(42) : error C2091: function returns function
d:\microsoft visual studio\vc98\include\new(42) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,void *)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl operator new(void))(unsigned int)'
d:\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
d:\microsoft visual studio\vc98\include\new(42) : error C2809: 'operator new' has no formal parameters
d:\microsoft visual studio\vc98\include\new(42) : error C2065: '_P' : undeclared identifier
Error executing cl.exe.
说明:我在生成Dialog based 时选择了Automation自动化支持。
d:\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'
d:\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function
d:\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters
d:\microsoft visual studio\vc98\include\new(36) : error C2061: syntax error : identifier 'THIS_FILE'
d:\microsoft visual studio\vc98\include\new(37) : error C2091: function returns function
d:\microsoft visual studio\vc98\include\new(37) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,const struct std::nothrow_t &)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl operator new(voi
d))(unsigned int)'
d:\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
d:\microsoft visual studio\vc98\include\new(41) : error C2061: syntax error : identifier 'THIS_FILE'
d:\microsoft visual studio\vc98\include\new(42) : error C2091: function returns function
d:\microsoft visual studio\vc98\include\new(42) : error C2556: 'void *(__cdecl *__cdecl operator new(void))(unsigned int,void *)' : overloaded function differs only by return type from 'void *(__cdecl *__cdecl operator new(void))(unsigned int)'
d:\microsoft visual studio\vc98\include\new(35) : see declaration of 'new'
d:\microsoft visual studio\vc98\include\new(42) : error C2809: 'operator new' has no formal parameters
d:\microsoft visual studio\vc98\include\new(42) : error C2065: '_P' : undeclared identifier
Error executing cl.exe.
解决方案 »
- VC++ 文件读写操作
- 请问下CopyFileEx创建的目标文件安全属性是独占还是共享?
- Update的问题(解决马上结帖)
- 求助!关于CDC::BitBlt()的使用。
- 一个比较挠头的AppendChunk问题
- 有些微软提供的源代码示例,VC6.0不能编译,而VC++ .NET支持,看来真得抛弃VC6.0而用VC++ .NET了哟!!!
- tree.SetCheck()为什么不好用?
- 显示中文遇到困难,有经验的请进
- WIN2000,系统运行时不停的读硬盘,系统速度N慢,为什么?
- 如何生成有窗口,菜单,工具栏的控件?
- 一个关于析构函数的问题
- 请问在这种情况下如何获得CxxxDoc* p_Doc啊?
调用了Windows API函数,为什么不能调用了?SHSoftDogMngDlg.obj : error LNK2001: unresolved external symbol _ReadDog
SHSoftDogMngDlg.obj : error LNK2001: unresolved external symbol _WriteDog
SHSoftDogMngDlg.obj : error LNK2001: unresolved external symbol _GetCurrentNo
SHSoftDogMngDlg.obj : error LNK2001: unresolved external symbol _DogCheck