如何将 Visual Studio 2005 中的项目构建升级到 Visual Studio 2008? [英] How to upgrade the project build in visual studio 2005 to visual studio 2008?

查看:41
本文介绍了如何将 Visual Studio 2005 中的项目构建升级到 Visual Studio 2008?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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:案例表达不是恒定的.我得到的只有这 3 种类型的错误.所有这 3 个错误都在 Error list & 中重复出现.变成一堆 64 错误.请为我提供上述问题的解决方案.您能否向我提供任何 suusgestion 或链接或通过我可以解决上述问题的任何方式?

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?

推荐答案

在 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).

这篇关于如何将 Visual Studio 2005 中的项目构建升级到 Visual Studio 2008?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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