将代码从VS2005迁移到VS2008后的问题 [英] Problem after moving code from VS2005 to VS2008

查看:63
本文介绍了将代码从VS2005迁移到VS2008后的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个在VS2005中可以工作的带有两个项目的解决方案.
我尝试将代码移至VS2008,但是遇到了两个问题:
解决方案转换后,由于存在许多未声明的标识符",我的项目无法编译MSTcpIP.h文件中的错误.
在VS2005中,此文件来自以下文件夹:
C:\ Program Files \ Microsoft Visual Studio 8 \ VC \ PlatformSDK \ Include
其中VS2008,此文件来自: C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Include
所以我尝试将C ++包含目录更改为VC8和现在,它可以编译,但不会运行并显示以下错误:
"0xC0000008:指定了无效的句柄".并停在文件"_file.c"中.
如果我尝试使用以下包含文件夹进行编译,也会发生相同的事情:
C:\ Program Files \ Microsoft SDKs \ Windows \ v5 \ Include
C:\ Program Files \ Microsoft SDKs \ Windows \ v6.1 \ Include

有关如何使其工作的任何建议,将不胜感激.
>
谢谢,
Alex.

Hi,
I have a solution with two project which works in VS2005.
I try to move the code to VS2008, but I encounter a couple of problems:
After the conversion of the solution, my projects won't compile due to many "undeclared identifier" errors in MSTcpIP.h file.
In VS2005 this file comes from the folder:
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include
whereas in VS2008 this file comes from:
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
So I tried to change the C++ include directory to the one from VC8 and now it compiles but wont run with the following error:
"0xC0000008: An invalid handle was specified" and stops in the file "_file.c".
The same thing happens if I try to compile with the following include folders:
C:\Program Files\Microsoft SDKs\Windows\v5\Include
C:\Program Files\Microsoft SDKs\Windows\v6.1\Include

Any suggestions on how to make it work will be appreciated.

Thanks,
Alex.

推荐答案

我会使用... \ Windows \ v6.0A \ Include.

您可以发布一个或两个初始错误及其所引用的源代码吗?
I would use ...\Windows\v6.0A\Include.

Can you post one or two of the initial errors and the source code they refer to?


这篇关于将代码从VS2005迁移到VS2008后的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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