使用Visual C ++ 2005 Express Edition和Mar的winnt.h文件中的错误. 15瑞典克朗 [英] Errors in winnt.h file using visual c++ 2005 express edition and mar. 15 sdk

查看:148
本文介绍了使用Visual C ++ 2005 Express Edition和Mar的winnt.h文件中的错误. 15瑞典克朗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.当我尝试在代码中包含winnt.h时,出现以下错误.我尝试使用最新的sdk和以前的发行版,并且两个文件似乎都产生相同的错误.这肯定是一个普遍的问题,但是我还没有找到答案.我在代码中包含了stdio.h,xlcall.h,windef.h和winnt.h.也许我需要包括另一个标题.任何帮助将不胜感激.谢谢.

Hello.  I get the following errors when I try to include winnt.h in my code.  I tried using the newest sdk as well as the previous release, and both files seem to generate the same errors.  This must be a common problem, but I haven't seen the answer.  I'm including stdio.h, xlcall.h, windef.h and winnt.h in my code.  Maybe I need to include another header.  Any help would be greatly appreciated.  Thanks.

用于Windows Server 2003 R2 \ Include \ winnt.h(3857)的C:\ Program Files \ Microsoft平台SDK:错误C2146:语法错误:缺少';'标识符'ContextRecord'前
C:\ Program Files \ Windows Server 2003 R2 \ Include \ winnt.h(3857)的Microsoft平台SDK:错误C4430:缺少类型说明符-假定为int.注意:C ++不支持Windows Server 2003 R2 \ Include \ winnt.h(3857)的默认int C:\ Program Files \ Microsoft Platform SDK:错误C4430:缺少类型说明符-假定为int.注意:C ++不支持Windows Server 2003 R2的default-int
C:\ Program Files \ Microsoft平台SDK \ Include \ winnt.h(8319):错误C2065:"PCONTEXT":未声明的标识符
C: Windows Server 2003 R2的\ Program Files \ Microsoft平台SDK \ Include \ winnt.h(8320):错误C2146:语法错误:标识符'ContextRecord'之前缺少')'
C:\ Program Files \ Microsoft Platform SDK for Windows Server 2003 R2 \ Include \ winnt.h(8320):警告C4229:使用了过时性:数据上的修饰符被忽略
C:\ Program Files \ Windows Server 2003 R2 \ Include \ winnt.h(8320)的Microsoft Platform SDK ):错误C2182:'RtlCaptureContext':非法使用类型'void'
C:\ Program Files \ Microsoft Platform SDK for Windows Server 2003 R2 \ Include \ winnt.h(8320):错误C2491:'RtlCaptureContext':不允许dllimport数据的定义
C:\ Program Files \ Windows Server 2003 R2 \ Include \ winnt.h(8320)的Microsoft Platform SDK:错误C2059:语法错误:')'
C:\ Program Files \ Microsoft平台SD Windows Server 2003 R2 \ Include \ winnt.h(9594)的K:错误C3861:'__readfsdword':找不到标识符

<身体>
结果

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(3857) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(3857) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(3857) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(8319) : error C2065: 'PCONTEXT' : undeclared identifier
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(8320) : error C2146: syntax error : missing ')' before identifier 'ContextRecord'
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(8320) : warning C4229: anachronism used : modifiers on data are ignored
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(8320) : error C2182: 'RtlCaptureContext' : illegal use of type 'void'
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(8320) : error C2491: 'RtlCaptureContext' : definition of dllimport data not allowed
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(8320) : error C2059: syntax error : ')'
C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winnt.h(9594) : error C3861: '__readfsdword': identifier not found

Results

推荐答案

在包含winbase.h时,我也会遇到类似的错误.它们似乎都围绕上下文和pcontext.这是winbase.h错误,以防万一有人发现它们有帮助.我在这个问题上看到了几个线程,但是似乎没有一个万无一失的解决方案.必须解决此问题.谢谢.

I also get similar errors when including winbase.h.  They all seem to focus around context and pcontext.  here are the winbase.h errors in case anyone would find them helpful.  I've seen a couple of threads on this problem, but none seemed to have a fool-proof solution.  There has to be a fix for this problem.  Thanks.

C:\ Program Files \ Windows Server 2003 R2 \ Include \ winbase.h(779)的Microsoft平台SDK:错误C2146:语法错误:缺少';'在标识符"LPCONTEXT"之前

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winbase.h(779) : error C2146: syntax error : missing ';' before identifier 'LPCONTEXT'

C:\ Program Files \ Windows Server 2003 R2 \ Include \ winbase.h(779)的Microsoft平台SDK:错误C4430:缺少类型说明符-假定为int.注意:C ++不支持default-int

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winbase.h(779) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

用于Windows Server 2003 R2 \ Include \ winbase.h(C)的C:\ Program Files \ Microsoft平台SDK:错误C2378:'PCONTEXT':重新定义;符号不能用typedef重载

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winbase.h(779) : error C2378: 'PCONTEXT' : redefinition; symbol cannot be overloaded with a typedef

C:\ Program Files \ Windows Server 2003 R2 \ Include \ winbase.h(779)的Microsoft平台SDK:错误C4430:缺少类型说明符-假定为int.注意:C ++不支持default-int

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winbase.h(779) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

C:\ Program Files \ Windows Server 2003 R2 \ Include \ winbase.h(3155)的Microsoft平台SDK:错误C2061:语法错误:标识符'LPCONTEXT'

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winbase.h(3155) : error C2061: syntax error : identifier 'LPCONTEXT'

C:\ Program Files \ Windows Server 2003 R2 \ Include \ winbase.h(3163)的Microsoft平台SDK:错误C4430:缺少类型说明符-假定为int.注意:C ++不支持default-int

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\winbase.h(3163) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


这篇关于使用Visual C ++ 2005 Express Edition和Mar的winnt.h文件中的错误. 15瑞典克朗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆