如何将Visual Studio 2005中的项目构建升级到Visual Studio 2008?

发布于 2024-08-28 12:51:03 字数 499 浏览 7 评论 0原文

我有一个 OPC(用于过程控制的 OLE)服务器项目,该项目开发为 Visual Studio 2005。我想在 Visual Studio 2008 中运行它。OPC 服务器项目的编码是在 VC++ 中完成的。我想将我的 OPC 客户端连接到此 OPC 服务器。当我第一次打开 Visual Studio 2005 中构建的 OPC 服务器项目到 Visual Studio 2008 时,它要求转换向导。我经历了那个向导&成功完成该向导。但是当我构建时(通过右键单击项目并选择构建解决方案),它会给出大量错误,大约有 64 个错误。大多数错误都是这样的 - 胎儿错误 C1083: 无法打开类型库文件:'msxml4.dll': 没有这样的文件或目录,胎儿错误 LINK1181: 无法打开输入文件 'rpcndr.lib' ,错误 C2051: case 表达式不是恒定的。我遇到的只有这 3 种类型的错误。所有这 3 个错误都在错误列表和错误列表中重复出现。变成一堆 64 错误。请为我提供上述问题的解决方案。您能否向我提供任何建议或链接或任何可以解决上述问题的方式?

I have one OPC ( OLE for Process control ) server project which is developed into visual studio 2005. I want to run it in visual studio 2008. The coding for the OPC server project is done in VC++. I want to connect my OPC client to this OPC server. When I was opened the OPC server project which was build into visual studio 2005 into visual studio 2008 first time it was asking for conversion wizard. I gone through that wizard & successfully finished that wizard. But when I build ( by right clicking on the project & choosing build solution ) it is giving lots of error near about 64 errors. Most of the errors are like - fetal error C1083:Can not open type library file:'msxml4.dll':No such file or directory, fetal error LINK1181:can not open input file 'rpcndr.lib' , error C2051:case expression not constant. only these 3 types of errors in am getting. All these 3 errors are repeated in Error list & becoming bunch of 64 errors. Please provide me the solution for the above issue. Can you provide me any suusgestion or link or any way through whcih I can resolve the above issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沉睡月亮 2024-09-04 12:51:04

在 Visual Studio 项目中,转到项目属性对话框以使用链接器 -->输入选项:
1.删​​除rpcndr.lib
2. 确保所有此类配置添加 rpcrt4.lib
这样做的原因是 Windows SDK 不再附带 rpcndr.lib。

In Visual Studio Project go to Project properties dialog to use Linker --> Input Options:
1. Remove rpcndr.lib
2. Make sure for all such configurations add rpcrt4.lib
Reason to do this is that the Windows SDK no longer ships with rpcndr.lib.

若言繁花未落 2024-09-04 12:51:04

在VS 2008中打开是升级的唯一途径。

但看起来您需要清理一些引用......这将是一个手动步骤(可能只需要设置一些路径)。从修复第一个错误开始,很可能许多后续错误都是第一个错误的结果。

通常的做法是在源树中的某个位置拥有引用库(包括类型库)的副本,因此您不依赖于操作系统或其他应用程序的安装文件夹的绝对路径。 (或者该库的持续存在)。

Opening in VS 2008 is the only way to upgrade.

But it looks like you need to clean up some of the references... this will be a manual step (likely just need to set a few paths). Start by fixing the first error, it is likely many of the subsequent errors are a consequence of that first error.

Normal practice is to have a copy of referenced libraries (including typelibs) somewhere in your source tree, so you are not dependent on absolute paths into the OS or other application's install folders. (Or the continuing existence of that library).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文