问题描述
- 关于在vs2010中出现的问题
-
大家好 我在编译程序时显示出以下错误:
1>c:program files (x86)microsoft sdkswindowsv7.0aincludewindef.h(208): error C2065: “HWND”: 未声明的标识符
1>c:program files (x86)microsoft sdkswindowsv7.0aincludewindef.h(208): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:program files (x86)microsoft sdkswindowsv7.0aincludewindef.h(209): error C2065: “HHOOK”: 未声明的标识符
1>c:program files (x86)microsoft sdkswindowsv7.0aincludewindef.h(209): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>c:program files (x86)microsoft sdkswindowsv7.0aincludewindef.h(209): error C2374: “DECLARE_HANDLE”: 重定义;多次初始化有哪位大神知道问题出在哪吗?关键之处显示错误是在windef.h文件中
解决方案
一般来说是缺少头文件或者头文件的搜索路径指定错误造成的。
解决方案二:
你好,谢谢建议 我试试 有问题再请教下
解决方案三:
不知道你有么有别的链接库?如果用了,可能是链接库路径之类的有问题
时间: 2024-08-02 07:57:14