为什么我照着书做还会出错,请进来看
这是出错的信息:
Deleting intermediate files and output files for project '1 - Win32 Debug'.
--------------------Configuration: 1 - Win32 Debug--------------------
Compiling resources...
Compiling...
StdAfx.cpp
f:\vc98\include\windef.h(310) : error C2143: syntax error : missing ';' before '*'
f:\vc98\include\windef.h(310) : error C2501: 'PPOINT' : missing storage-class or type specifiers
f:\vc98\include\windef.h(310) : error C2501: 'NPPOINT' : missing storage-class or type specifiers
f:\vc98\include\windef.h(310) : error C2501: 'LPPOINT' : missing storage-class or type specifiers
f:\vc98\include\wingdi.h(2844) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(2885) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3191) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3193) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3556) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3576) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3600) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3601) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3610) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3612) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3614) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3615) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3619) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3645) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\wingdi.h(3646) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\winuser.h(6262) : error C2146: syntax error : missing ')' before identifier 'lpPoint'
f:\vc98\include\winuser.h(6262) : warning C4229: anachronism used : modifiers on data are ignored
f:\vc98\include\winuser.h(6262) : error C2491: 'GetCursorPos' : definition of dllimport data not allowed
f:\vc98\include\winuser.h(6262) : error C2440: 'initializing' : cannot convert from 'int *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
f:\vc98\include\winuser.h(6262) : error C2059: syntax error : ')'
f:\vc98\include\winuser.h(6332) : error C2146: syntax error : missing ')' before identifier 'lpPoint'
f:\vc98\include\winuser.h(6332) : warning C4229: anachronism used : modifiers on data are ignored
f:\vc98\include\winuser.h(6332) : error C2491: 'GetCaretPos' : definition of dllimport data not allowed
f:\vc98\include\winuser.h(6332) : error C2440: 'initializing' : cannot convert from 'int *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
f:\vc98\include\winuser.h(6332) : error C2059: syntax error : ')'
f:\vc98\include\winuser.h(6339) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\winuser.h(6346) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\winuser.h(6354) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\include\shellapi.h(62) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(607) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(608) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(758) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(761) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(800) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(850) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(851) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(872) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(978) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(2057) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(2059) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxwin.h(2061) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxcmn.h(203) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxcmn.h(217) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxcmn.h(275) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxcmn.h(838) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxcmn.h(912) : error C2061: syntax error : identifier 'LPPOINT'
f:\vc98\mfc\include\afxcmn.h(939) : error C2061: syntax error : identifier 'LPPOINT'
执行 cl.exe 时出错.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\1.sbr': No such file or directory
执行 bscmake.exe 时出错.
1.exe - 1 error(s), 0 warning(s)
还有:windef.h,wingdi.h,winuser.h,afxwin.h原本都不是我工程里的文件,就是说这些文件都不是我写的,那到底是哪出错?还要其他资料的请问我拿,或者QQ找我面谈。QQ:1838805008.
谢谢各位大神了。
[解决办法]
应该是有什么头文件没include进来。试试:
#include <windef.h>
[解决办法]
看着像是windef.h的问题。
[解决办法]
clean一下试试,以前遇到过这样的问题,忘了怎么解决的了,看来要做笔记啊
[解决办法]