2015-05-30 03:31 采纳率: 0%
浏览 1768

关于在vs2010中出现的问题

大家好 我在编译程序时显示出以下错误:
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\windef.h(208): error C2065: “HWND”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\windef.h(208): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\windef.h(209): error C2065: “HHOOK”: 未声明的标识符
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\windef.h(209): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\windef.h(209): error C2374: “DECLARE_HANDLE”: 重定义;多次初始化

有哪位大神知道问题出在哪吗?关键之处显示错误是在windef.h文件中

  • 写回答

3条回答 默认 最新

  • threenewbee 2015-05-30 03:34
    关注

    一般来说是缺少头文件或者头文件的搜索路径指定错误造成的。

    评论

报告相同问题?