《windows程序设计》上的例子
c:\documents and settings\administrator\sysmets.h(146) : error C2065: 'SM_MOUSEWHEELPRESENT' : undeclared identifierc:\documents and settings\administrator\sysmets.h(146) : error C2099: initializer is not a constant
c:\documents and settings\administrator\sysmets.h(146) : warning C4047: 'initializing' : 'int ' differs in levels of indirection from 'char [21]'
c:\documents and settings\administrator\sysmets.h(148) : error C2065: 'SM_XVIRTUALSCREEN' : undeclared identifier
c:\documents and settings\administrator\sysmets.h(148) : error C2099: initializer is not a constant
c:\documents and settings\administrator\sysmets.h(149) : warning C4047: 'initializing' : 'int ' differs in levels of indirection from 'char [24]'
c:\documents and settings\administrator\sysmets.h(150) : error C2065: 'SM_YVIRTUALSCREEN' : undeclared identifier
c:\documents and settings\administrator\sysmets.h(150) : error C2099: initializer is not a constant
c:\documents and settings\administrator\sysmets.h(152) : error C2065: 'SM_CXVIRTUALSCREEN' : undeclared identifier
c:\documents and settings\administrator\sysmets.h(152) : error C2099: initializer is not a constant
c:\documents and settings\administrator\sysmets.h(152) : warning C4047: 'initializing' : 'int ' differs in levels of indirection from 'char [19]'
c:\documents and settings\administrator\sysmets.h(154) : error C2065: 'SM_CYVIRTUALSCREEN' : undeclared identifier
c:\documents and settings\administrator\sysmets.h(154) : error C2099: initializer is not a constant
c:\documents and settings\administrator\sysmets.h(155) : warning C4047: 'initializing' : 'int ' differs in levels of indirection from 'char [22]'
c:\documents and settings\administrator\sysmets.h(156) : error C2065: 'SM_CMONITORS' : undeclared identifier
c:\documents and settings\administrator\sysmets.h(156) : error C2099: initializer is not a constant
c:\documents and settings\administrator\sysmets.h(158) : error C2065: 'SM_SAMEDISPLAYFORMAT' : undeclared identifier
c:\documents and settings\administrator\sysmets.h(158) : error C2099: initializer is not a constant
c:\documents and settings\administrator\sysmets.h(158) : warning C4047: 'initializing' : 'int ' differs in levels of indirection from 'char [21]'
c:\documents and settings\administrator\sysmet1.c(3) : warning C4005: 'WINVER' : macro redefinition
c:\program files\microsoft visual studio\vc98\include\windows.h(22) : see previous definition of 'WINVER'
c:\documents and settings\administrator\sysmet1.c(73) : error C2039: 'iIndex' : is not a member of '__unnamed'
c:\documents and settings\administrator\sysmets.h(3) : see declaration of '__unnamed'
c:\documents and settings\administrator\sysmet1.c(73) : error C2198: 'GetSystemMetrics' : too few actual parameters
执行 cl.exe 时出错.
这是《windows程序设计》第五版上的一个例子,复制到vc6里面怎么有误?看过这本书(电子版)的大虾指点指点。。。谢了