概述
使用#include <Winbase.h> 中的Sleep函数
出现如下错误:
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(226) : error C2146: 语法错误 : 缺少“;”(在标识符“Internal”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(226) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(227) : error C2146: 语法错误 : 缺少“;”(在标识符“InternalHigh”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(227) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(227) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(230) : error C2146: 语法错误 : 缺少“;”(在标识符“Offset”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(230) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(230) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(231) : error C2146: 语法错误 : 缺少“;”(在标识符“OffsetHigh”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(231) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(231) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(234) : error C2146: 语法错误 : 缺少“;”(在标识符“Pointer”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(234) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(234) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(237) : error C2146: 语法错误 : 缺少“;”(在标识符“hEvent”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(237) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(237) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(241) : error C2146: 语法错误 : 缺少“;”(在标识符“nLength”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(241) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(241) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(242) : error C2146: 语法错误 : 缺少“;”(在标识符“lpSecurityDescriptor”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(242) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(242) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(243) : error C2146: 语法错误 : 缺少“;”(在标识符“bInheritHandle”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(243) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(243) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(247) : error C2146: 语法错误 : 缺少“;”(在标识符“hProcess”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(247) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(247) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(248) : error C2146: 语法错误 : 缺少“;”(在标识符“hThread”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(248) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(248) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(249) : error C2146: 语法错误 : 缺少“;”(在标识符“dwProcessId”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(249) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(249) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(250) : error C2146: 语法错误 : 缺少“;”(在标识符“dwThreadId”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(250) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(250) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(261) : error C2146: 语法错误 : 缺少“;”(在标识符“dwLowDateTime”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(261) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(261) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(262) : error C2146: 语法错误 : 缺少“;”(在标识符“dwHighDateTime”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(262) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(262) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(272) : error C2146: 语法错误 : 缺少“;”(在标识符“wYear”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(272) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(272) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(273) : error C2146: 语法错误 : 缺少“;”(在标识符“wMonth”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(273) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(273) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(274) : error C2146: 语法错误 : 缺少“;”(在标识符“wDayOfWeek”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(274) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(274) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(275) : error C2146: 语法错误 : 缺少“;”(在标识符“wDay”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(275) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(275) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(276) : error C2146: 语法错误 : 缺少“;”(在标识符“wHour”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(276) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(276) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(277) : error C2146: 语法错误 : 缺少“;”(在标识符“wMinute”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(277) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(277) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(278) : error C2146: 语法错误 : 缺少“;”(在标识符“wSecond”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(278) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(278) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(279) : error C2146: 语法错误 : 缺少“;”(在标识符“wMilliseconds”的前面)
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(279) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(279) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(283) : error C2065: “WINAPI”: 未声明的标识符
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(283) : error C2065: “PTHREAD_START_ROUTINE”: 未声明的标识符
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(283) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
1>D:Program FilesMicrosoft Visual Studio 8VCPlatformSDKincludeWinbase.h(283) : fatal error C1903: 无法从以前的错误中恢复;正在停止编译
解决方法:
不能直接使用#include <Winbase.h>
应该改为#include <Windows.h>
最后
以上就是柔弱小蚂蚁为你收集整理的使用Winbase.h错误的解决的全部内容,希望文章能够帮你解决使用Winbase.h错误的解决所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复