(转自《http://202.117.156.125/index.php/component/content/article/128--sm-mousewheelpresent--undeclared-identifier》原作者邓慧娟错误提示:SYSMETS1.CPPd:\workspace\text\sysmets.h(297) : error C2065: 'SM_MOUSEWHEELPRESENT' : undeclared identifierd:\workspace\text\sysmets.h(301)
: error C2065: 'SM_XVIRTUALSCREEN' : undeclared identifierd:\workspace\text\sysmets.h(305) : error C2065: 'SM_YVIRTUALSCREEN' : undeclared identifierd:\workspace\text\sysmets.h(309) : error C2065: 'SM_CXVIRTUALSCREEN' : undeclared identifierd:\workspace\text\sysmets.h(313)
: error C2065: 'SM_CYVIRTUALSCREEN' : undeclared identifierd:\workspace\text\sysmets.h(317) : error C2065: 'SM_CMONITORS' : undeclared identifierd:\workspace\text\sysmets.h(321) : error C2065: 'SM_SAMEDISPLAYFORMAT' : undeclared identifier解决方法:因为各个window版本所能使用的常量不一样,所以在xp环境下,必须在sysmets1.cpp文件最开始处加入一句:#define
WINVER 0x0501以下是windows其他版本号: windows server 2003 winver>=0x0502 windows xp winver>=0x0501 windows 2000 winver>=0x0500 windows nt 4.0 winver>=0x0400 windows me winver>=0x0500 windows 98 winver>=0x0410 windows 95 winver>=0x0400
相关文章:
-
2022-01-12
-
2022-02-10
-
2021-12-08
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
猜你喜欢
-
2021-11-26
-
2022-02-05
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2022-12-23
相关资源
-
下载
2023-01-13
-
下载
2021-06-24
-
下载
2021-06-23