• 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
  • 相关阅读:
    CentOS 7 源码编译安装 Mysql 5.7
    Nginx 负载均衡 后端 监控检测 nginx_upstream_check_module 模块的使用
    cronolog 对 tomcat 7 进行日志切割
    OpenStack
    Oracle GoldenGate 异构平台同步(Mysql到Oracle)
    ELK 日志分析体系
    Tengine TCP 负载均衡
    MariaDB GTID 复制同步
    Mycat 安装配置
    Navicat破解
  • 原文地址:https://www.cnblogs.com/wbb2109/p/2263682.html
Copyright © 2020-2023  润新知