zoukankan      html  css  js  c++  java
  • Windows程序设计:'SM_ MOUSEWHEELPRESENT' : undeclared identifier解决办法

    (转自《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
  • 相关阅读:
    犯错记录(一)
    BullseyeCoverage:代码覆盖率。
    测试工具:insure++
    C++ 常见容器
    linux修改rm指令执行(数据安全)
    C++细节系列(零):零散记录
    vim中使用gdb。
    vim自动补全文章搜集
    排序算法的个人心得体会。
    面向对象的三个特征。
  • 原文地址:https://www.cnblogs.com/wbb2109/p/2263682.html
Copyright © 2011-2022 走看看