编译出现以下错误提示,哪位大哥能指点一下啊,谢谢了!
d:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
d:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
可能包含了 windows.h比如:#include <xxx.h>在这个头文件中可能已包含了windows.h
只能搜索你所在工程目录中的文件
我在整个目录下用window的搜索包含文字"windows.h"也没有发现结果
你在tools->options->directory换一下sdk和mfc头文件路径,然后一定要rebuild all.
如果还有问题,就是你的文件包含次序有问题。
哪个大哥能留下msn或QQ
我把程序传给你帮我调调,谢谢了
--------------------Configuration: CGViewer - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
d:\dh-cgcard\cgviewer\debug\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
d:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Error executing cl.exe.CGViewer.exe - 1 error(s), 1 warning(s)
我把程序拷贝到其他电脑上编译也是同样的错误
用前几天的备份是可以的,但这几天都要白做了5555555555