Windows 7 上的 Visual Studio 2008
我有两台独立的机器。在第一台机器上我安装了 Windows Xp 和 Visual Studio 2008,在另一台机器上安装了 Windows 7 和 Visual Studio 2008。 我有一个在第一台机器上创建的应用程序,即 Windows Xp 和 Visual Studio 2008。 问:当我尝试在 windows 7 平台上编译时,它不起作用。 它显示头文件、资源文件和链接器错误。
PS - 我在第一台机器上在 Visual Studio 2008 ....\vc\include 下看到了近 350 个头文件 而在第二台机器上只有 150。 为什么会这样呢?
I have two separate machines. On first machine I have installed windows Xp and visual studio 2008 and on the other machine Windows 7 and visual studio 2008.
I have an application which was created on the first machine i.e. on windows Xp and visual studio 2008.
Question: When I am trying to compile on windows 7 platform, it does not work.
It shows errors for header file, resource file and linker errors.
P.S. - I saw nearly 350 header files on first machine under visual studio 2008 ....\vc\include
and on second machine only 150.
why this is so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能在两台机器上有不同版本的 Platform SDK(尽管很难确定,因为您没有说出实际的错误是什么)。
通过以下方法之一下载并安装最新的 Windows Platform SDK:
(您可能希望在两台计算机上安装它以保留它们一致。)
确保安装时 Visual Studio 没有运行,以防万一。
安装后,在 VS 仍未运行的情况下,运行现在将出现在开始菜单中的 Windows SDK 配置工具,并确保 VS2008 配置为使用您刚刚安装的 SDK。
You probably have different versions of the Platform SDK on the two machines (although it's hard to be sure as you didn't say what the errors actually were).
Download and install the latest Windows Platform SDK via one of these methods:
(You might want to install it on both machines to keep them consistent.)
Ensure Visual Studio is not running when you install it, just in case.
After installing it, and with VS still not running, run the Windows SDK Configuration Tool which will now be in your start menu and ensure that VS2008 is configured to use the SDK you just installed.
您是否尝试将其编译为“任何CPU”或“x86”?
如果您仍然发现问题,请尝试此操作
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx
Did you try compiling it as "Any CPU" or "x86" ?
Incase if you still find issues try this
http://msdn.microsoft.com/en-us/library/9yb4317s.aspx