VC6.0中,为什么不能用ODS_HOTLIGHT

不再相见 2015-08-12 09:20:16
已经加了头文件 Winuser.h 还显示 ODS_HOTLIGHT undeclared identifier
...全文
438 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
fcqm8888 2015-10-16
  • 打赏
  • 举报
回复
先问自己,不要问别人啊。
fcqm8888 2015-08-23
  • 打赏
  • 举报
回复
一般适用范围不对,会造成这种情况。
fcqm8888 2015-08-20
  • 打赏
  • 举报
回复
为什么非要用这个软件呢?
赵4老师 2015-08-13
  • 打赏
  • 举报
回复
File: "C:\Program Files\Microsoft Visual Studio\VC98\Include\WINUSER.H"
    2258: /*
    2259:  * Owner draw state
    2260:  */
    2261: #define ODS_SELECTED    0x0001
    2262: #define ODS_GRAYED      0x0002
    2263: #define ODS_DISABLED    0x0004
    2264: #define ODS_CHECKED     0x0008
    2265: #define ODS_FOCUS       0x0010
    2266: #if(WINVER >= 0x0400)
    2267: #define ODS_DEFAULT         0x0020
    2268: #define ODS_COMBOBOXEDIT    0x1000
    2269: #endif /* WINVER >= 0x0400 */
    2270: #if(WINVER >= 0x0500)
    2271: #define ODS_HOTLIGHT        0x0040
    2272: #define ODS_INACTIVE        0x0080
    2273: #endif /* WINVER >= 0x0500 */
赵4老师 2015-08-13
  • 打赏
  • 举报
回复
2270: #if(WINVER >= 0x0500)
赵4老师 2015-08-12
  • 打赏
  • 举报
回复
The #include Directive The #include directive tells the preprocessor to treat the contents of a specified file as if those contents had appeared in the source program at the point where the directive appears. You can organize constant and macro definitions into include files and then use #include directives to add these definitions to any source file. Include files are also useful for incorporating declarations of external variables and complex data types. You only need to define and name the types once in an include file created for that purpose. Syntax #include "path-spec" #include <path-spec> The path-spec is a filename optionally preceded by a directory specification. The filename must name an existing file. The syntax of the path-spec depends on the operating system on which the program is compiled. Both syntax forms cause replacement of that directive by the entire contents of the specified include file. The difference between the two forms is the order in which the preprocessor searches for header files when the path is incompletely specified. Syntax Form Action Quoted form This form instructs the preprocessor to look for include files in the same directory of the file that contains the #include statement, and then in the directories of whatever files that include (#include) that file. The preprocessor then searches along the path specified by the /I compiler option, then along paths specified by the INCLUDE environment variable. Angle-bracket form This form instructs the preprocessor to search for include files first along the path specified by the /I compiler option, then along the path specified by the INCLUDE environment variable. The preprocessor stops searching as soon as it finds a file with the given name. If you specify a complete, unambiguous path specification for the include file between two sets of double quotation marks (" "), the preprocessor searches only that path specification and ignores the standard directories. If the filename enclosed in double quotation marks is an incomplete path specification, the preprocessor first searches the “parent” file’s directory. A parent file is the file containing the #include directive. For example, if you include a file named file2 within a file named file1, file1 is the parent file. Include files can be “nested”; that is, an #include directive can appear in a file named by another #include directive. For example, file2, above, could include file3. In this case, file1 would still be the parent of file2 but would be the “grandparent” of file3. When include files are nested, directory searching begins with the directories of the parent file and then proceeds through the directories of any grandparent files. Thus, searching begins relative to the directory containing the source currently being processed. If the file is not found, the search moves to directories specified by the /I compiler option. Finally, the directories specified by the INCLUDE environment variable are searched. The following example shows file inclusion using angle brackets: #include <stdio.h> This example adds the contents of the file named STDIO.H to the source program. The angle brackets cause the preprocessor to search the directories specified by the INCLUDE environment variable for STDIO.H, after searching directories specified by the /I compiler option. The following example shows file inclusion using the quoted form: #include "defs.h" This example adds the contents of the file specified by DEFS.H to the source program. The double quotation marks mean that the preprocessor searches the directory containing the parent source file first. Nesting of include files can continue up to 10 levels. Once the nested #include is processed, the preprocessor continues to insert the enclosing include file into the original source file. Microsoft Specific To locate includable source files, the preprocessor first searches the directories specified by the /I compiler option. If the /I option is not present or fails, the preprocessor uses the INCLUDE environment variable to find any include files within angle brackets. The INCLUDE environment variable and /I compiler option can contain multiple paths separated by semicolons (;). If more than one directory appears as part of the /I option or within the INCLUDE environment variable, the preprocessor searches them in the order in which they appear. For example, the command CL /ID:\MSVC\INCLUDE MYPROG.C causes the preprocessor to search the directory D:\MSVC\INCLUDE for include files such as STDIO.H. The commands SET INCLUDE=D:\MSVC\INCLUDE CL MYPROG.C have the same effect. If both sets of searches fail, a fatal compiler error is generated. If the filename is fully specified for an include file with a path that includes a colon (for example, F:\MSVC\SPECIAL\INCL\TEST.H), the preprocessor follows the path. For include files specified as #include "path-spec", directory searching begins with the directory of the parent file and then proceeds through the directories of any grandparent files. Thus, searching begins relative to the directory containing the source file containing the #include directive being processed. If there is no grandparent file and the file has not been found, the search continues as if the filename were enclosed in angle brackets. END Microsoft Specific
赵4老师 2015-08-12
  • 打赏
  • 举报
回复
工程、设置、C/C++、分类:Preprocessor、附加包含路径:填写附加头文件所在目录 逗号间隔多项
木黑神 2015-08-12
  • 打赏
  • 举报
回复
引用 2 楼 zhao4zhong1 的回复:
The #include Directive
在是在VC++6.0 中,用 VS2010 就不会提示了。 想请问一句,如何能是:ODS_HOTLIGHT 有效果??
源码下载地址: https://pan.quark.cn/s/0d6e3002ba51 ### IR2110文资料知识点详述 #### 一、概述 IR2110是一种专为脉冲宽度调制应用而设计的高性能驱动集成电路,在各类功率转换设备具有广泛的应用,特别是在需要实现隔离驱动的场景下表现出色。该芯片融合了光电隔离与电磁隔离的优势,能够达成快速响应并保持较小的物理尺寸,尤其适合用于小功率的变换装置。 #### 二、IR2110内部结构与特点 **1. 内部结构** - **封装形式**:采用DIP14引脚封装。 - **内部组成**:由逻辑输入单元、电平平移单元以及输出保护单元这三个主要部分构成。 - **悬浮电源**:借助自举电路实现,使得高端工作电压最高能够达到500V,支持±50V/ns的电压变化率。 - **工作电压范围**:逻辑电源电压范围为5~15V,输出电源端电压范围为10~20V,易于与其他逻辑电平进行匹配。 - **工作频率**:最高可达到500kHz。 - **功耗**:在15V条件下静态功耗仅为116mW。 - **延迟时间**:导通延迟120ns,关断延迟94ns。 - **峰值输出电流**:图腾柱输出峰值电流为2A。 **2. 特点** - **独立输入通道**:具备独立的低端和高端输入通道配置。 - **兼容性**:逻辑电源地与功率地之间允许±5V的偏移量,便于与TTL或CMOS电平进行匹配。 - **自举电源**:内置自举电源电路,有效减少驱动电源的数量,从而简化电路设计。 - **高dv/dt能力**:具有较强的dv/dt抑制能力,适合高频开关应用。 - **低功耗**:工作状态下功耗较低,有利于提升整体效率。 #### 三、高压侧...

16,550

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧