迁移到VS2010-删除对先前编译器的引用 [英] Migrating to VS2010-Removing references to previous compiler

查看:110
本文介绍了迁移到VS2010-删除对先前编译器的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将VC 6.0项目迁移到VS2010.该项目是十年前开发的.我使用VC10.0编译器来构建所有内容.必须进行某些更改以适应最新的MFC更改.该项目已成功构建并且运行良好.但是,当我尝试将其安装在另一台计算机上时,注册失败.在目标计算机上,我安装了VC6.0,现在安装成功.这表明对VC6.0仍然存在某些依赖性.在我的&中链接路径,我没有对VC6.0目录的引用.尽管如此,我仍然遇到这个问题.

I recently migrated VC 6.0 project to VS2010. The project was developed a decade ago. I build everything with VC10.0 compiler. Certain changes had to be made to adjust to latest MFC changes. The project is successfully build and running fine. But when I tried to install it on another machine, the registration failed. On target machine, I installed VC6.0, and now the installation is sucsseful. This indicates that there are still certain dependencies on VC6.0. In my include & link path, I have no references to VC6.0 directories. Still, I am left with this issue. How can find out such dependencies and resolve them?

推荐答案

尝试在可执行文件上使用Depends.exe工具.它将提供所有dll依赖项,并提示缺少的内容.如果我没记错的话,这个工具是VC6附带的.它只是一个简单的exe文件,您可以将其复制到目标计算机上并在其中运行二进制文件,以轻松检测丢失的dll并遍历依赖项.
Try using the Depends.exe tool on your executable. It will give all dll dependencies, and hint what''s missing. This tool came with VC6 if I remember correctly. It''s just a plain exe file you can copy to a target machine and run on your binaries there to easily detect missing dlls, and traverse dependencies.


在Niklas上进行澄清答案,可以在此处 [常规">"MFC的使用"和项目属性">"C ++">代码生成">运行时库"中使用到MFC和CRT的静态链接.如果您不想或不能使用静态链接(有时会发生),则可能需要获取VS2010运行时 [ x64 [
To clarify on Niklas''s answer, Depends.exe can be found here[^].

Also check to make sure you are using a static link to MFC and the CRT in Project Properties>General>Use of MFC and Project Properties>C++>Code Generation>Runtime Library. If you don''t want to or can''t use a static link (which happens from time to time) then you might need to get the VS2010 runtimes[^] (or for x64[^]).


我知道Depends.exe,并检查了在论坛上提交问题之前的依赖关系.如何从depends.exe中查找列出的库是对应于VC6.0安装还是VC10.0安装?
I am aware of depends.exe and I checked the dependencies before submitting the issue on forum. How can I find from depends.exe whether the library being listed corresponds to VC6.0 installation or VC10.0 installation?


这篇关于迁移到VS2010-删除对先前编译器的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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