0

我从网上得到了一个项目。“解决方案”和“项目”文件是为 VS2010 编码的,但我更改了版本号,我可以将它们加载到我的 VS2005 中。我尝试构建解决方案,但出现以下错误:

'WOW64_CONTEXT': undeclared identifier
'wow64Context': undeclared identifier
'Wow64GetThreadContext': is not a member of 'global namespace'
etc...

我从文档中知道WOW64_CONTEXT必须在 winnt.h 中声明。在我的系统上,它不是。到底是怎么回事?我是魔兽新手,但我理解这个概念。我只是从未使用过它。

这是我的设置(注意:我安装了 Intel CC 9,但我没有在这个项目中使用它。我使用 MS 编译器):

Microsoft Visual Studio 2005 版本 8.0.50727.867 (vsvista.050727-8600) Microsoft .NET Framework 版本 2.0.50727 SP2

已安装版本:Professional Microsoft Visual C# 2005 77626-009-2220332-41593 Microsoft Visual C++ 2005 77626-009-2220332-41593 Microsoft Visual Studio 2005 Tools for Applications 77626-009-2220332-41593 Microsoft Web Application Projects 2020520326-009- -41593 Microsoft Visual Studio 2005 专业版 8.0.50727.867 版修补程序 - ENU (KB932372)

Intel(R) C++ Compiler Integration for Microsoft Visual Studio 2005,版本 9.1.632.2005,版权所有 (C) 2002-2007 Intel Corporation。

Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
Microsoft Visual Studio 2005 Professional Edition 的
安全更新 - ENU (KB2251481) Microsoft Visual Studio 2005 Professional Edition 的
安全更新 - ENU (KB2465367) Microsoft Visual Studio 2005 Professional 的安全更新版本 - ENU (KB2538218)
Microsoft Visual Studio 2005 专业版安全更新 - ENU (KB971023)
Microsoft Visual Studio 2005 专业版安全更新 - ENU (KB971090) Microsoft Visual Studio 2005 专业版
安全更新 - ENU (KB973673)
更新Microsoft Visual Studio 2005 专业版-ENU (KB932232)

有人可以帮助我吗?

4

2 回答 2

1

也许其他人会再次问这个问题,尽管它已经在这里甚至 4 年了。

  1. 打开你的C盘。并搜索 WinNT.H。
  2. 打开 WinNT.H 并搜索 CONTEXT_AMD64
  3. DECLSPEC_ALIGN(16) _CONTEXT 将满足您的需求。
  4. 简而言之:打开 WinNT.H 并转到 line:3647。好的,我知道了。
于 2015-12-04T15:02:53.597 回答
0

文档中,请参阅“支持的最低客户端:Vista”部分。

您将需要涵盖 Vista 的最新版本的 Windows SDK,并且还需要将WINVER_WIN32_WINNT宏定义为 0x600 或更高版本以启用 Vista 功能。文档在这里,Raymond Chen在他的博客上提供了一些历史。

于 2011-07-12T13:26:06.723 回答