zoukankan      html  css  js  c++  java
  • Windows版本

       在使用一些新版本的API,或者控件的新特性(比如新版的ComCtl32.dll)的时候,你可能会得到“error C2065: undeclared identifier.“这个错误。原因是这些功能是依赖于你的操作系统的版本的。而你的头文件中的定义并不是最新的。(对于MFC,就是stdafx.h)下面详细列举了每个Windows版本对应的NTDDI_VERSION ,_WIN32_WINNT ,WINVER ,_WIN32_IE 这些宏。

    The following table describes the preferred macros in use by the Windows header files.

    Minimum system required                Macros to define
    Windows Server 2008                     NTDDI_VERSION >= NTDDI_LONGHORN
    Windows Vista                                NTDDI_VERSION >= NTDDI_VISTA
    Windows Server 2003 SP1                 NTDDI_VERSION >= NTDDI_WS03SP1
    Windows Server 2003                     NTDDI_VERSION >= NTDDI_WS03
    Windows XP SP2                          NTDDI_VERSION >= NTDDI_WINXPSP2
    Windows XP SP1                          NTDDI_VERSION >= NTDDI_WINXPSP1
    Windows XP                                  NTDDI_VERSION >= NTDDI_WINXP
    Windows 2000 SP4                        NTDDI_VERSION >= NTDDI_WIN2KSP4
    Windows 2000 SP3                        NTDDI_VERSION >= NTDDI_WIN2KSP3
    Windows 2000 SP2                        NTDDI_VERSION >= NTDDI_WIN2KSP2
    Windows 2000 SP1                        NTDDI_VERSION >= NTDDI_WIN2KSP1
    Windows 2000                                NTDDI_VERSION >= NTDDI_WIN2K

    The following table describes the legacy macros in use by the Windows header files.

    Minimum system required                 Macros to define
    Windows Server 2008                      _WIN32_WINNT>=0x0600
                                                             WINVER>=0x0600
     
    Windows Vista                            _WIN32_WINNT>=0x0600
                                                         WINVER>=0x0600
     
    Windows Server 2003                      _WIN32_WINNT>=0x0502
                                                              WINVER>=0x0502
     
    Windows XP                               _WIN32_WINNT>=0x0501
                                                           WINVER>=0x0501
     
    Windows 2000                             _WIN32_WINNT>=0x0500
                                                          WINVER>=0x0500
     
    Windows NT 4.0                           _WIN32_WINNT>=0x0400
                                                           WINVER>=0x0400
     
    Windows Me                               _WIN32_WINDOWS=0x0500
                                                           WINVER>=0x0500
     
    Windows 98                               _WIN32_WINDOWS>=0x0410
                                                       WINVER>=0x0410
     
    Windows 95                               _WIN32_WINDOWS>=0x0400
                                                        WINVER>=0x0400
     
    Internet Explorer 7.0                        _WIN32_IE>=0x0700
    Internet Explorer 6.0 SP2                 _WIN32_IE>=0x0603
    Internet Explorer 6.0 SP1                 _WIN32_IE>=0x0601
    Internet Explorer 6.0                        _WIN32_IE>=0x0600
    Internet Explorer 5.5                         _WIN32_IE>=0x0550
    Internet Explorer 5.01                        _WIN32_IE>=0x0501
    Internet Explorer 5.0, 5.0a, 5.0b          _WIN32_IE>=0x0500
    Internet Explorer 4.01                       _WIN32_IE>=0x0401
    Internet Explorer 4.0                          _WIN32_IE>=0x0400
    Internet Explorer 3.0, 3.01, 3.02        _WIN32_IE>=0x0300

    本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/wqvbjhc/archive/2008/08/03/2761657.aspx

  • 相关阅读:
    flex布局水平垂直居中
    react-native-vector-icons自定义图标
    RN真机USB 调试
    react-native 路由 react-native-router-flux
    使用react-native-router-flux路由的踩坑日记,问题点: 就是不报错,启动项目模拟器直接白屏闪退
    RN坑:如果你运行时出现了错误,但是你又把错误改了,但是你重跑项目,发现还是报你改错误前的错误,那么,你就得去清楚缓存啦,
    react-native调试方法
    Unable to load script.Make sure you‘re either running a metro server( run ‘react-native start‘ ) or that your bundle ‘index.android.bundle‘ is packaged correctly for release.
    React-Native样式表
    reactNative给webstorm创建代码模板
  • 原文地址:https://www.cnblogs.com/kevinzhwl/p/3878974.html
Copyright © 2011-2022 走看看