VC6至Visual Studio 2010 [英] VC6 to Visual Studio 2010

查看:115
本文介绍了VC6至Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< b</b>感谢您在以下问题上的帮助.
我有一个用VC6编写的旧项目.在最近的一次崩溃中,我丢失了已安装在计算机中的VC6软件.该代码正在工作.从那时起,我一直在尝试寻找再次运行它的方法. Visual Studio 2008 Express无法找到MFC文件,因此无法编译. Visual Studio 2010可以编译,但不会生成.我不确定为什么.
是否有人对VC6有经验,尤其是与Vis Studio 2010相对?
我无法掌握VC6,也不会打扰.正如我所说的代码很旧,我不敢再碰它以尝试纠正我得到的错误.但是由于它直到最近都运行良好(在计算机崩溃并丢失VC6之前),所以我想知道是否需要对其进行升级才能在Visual Studio 2010上运行.谢谢.

解决方案

<默认情况下,VS2008 Express不包括MFC.如果您的系统上有MFC,则需要在选项设置中将路径添加到VS目录.您不会说您使用的是哪个版本的VS 2010(Express或Purchased),因此可能是同一问题.在这两种情况下,您都需要向任何人证明自己可能遇到的错误,以便提出建议.


VC ++ 2010将比VC ++ 6更符合标准.因此,为VC 6编写的旧代码不再进行编译也就不足为奇了.您可能必须遍历代码并进行更改,以确保代码与更新的编译器一致.

您可以在此处发布某些错误(也许在单独的线程中),而我(以及此处的其他错误)将很乐意帮助您解决它们.


发布您的错误,我已经之前升级旧项目,可能会有所帮助.发生了一些变化,错误有时并不能为您提供很多信息,但是它确实可行.


<b></b>I would appreciate your help with the following problem.
I have an old project written in VC6. In a recent crash I lost the VC6 software I had installed in my machine. The code was working. Since then I have been trying to find ways to run it again. Visual Studio 2008 Express was not able to find the MFC files so it won''t compile. Visual Studio 2010 compiles but won''t build. I''m not sure why.
Does anyone have experience with VC6 especially vis-a-vis Vis Studio 2010?
I can''t get hold of VC6 or I wouldn''t bother. As I said the code is very old and I don''t dare touch it again to try to correct the errors I get. But since it was running fine until recently (before the computer crashed and I lost VC6) I wonder if it needs to be upgraded to run on Visual Studio 2010. Thanks.

解决方案

VS 2008 Express does not include MFC by default; if you have MFC on your system then you need to add the path to the VS directories in the options settings. You do not say which version of VS 2010 (Express or Purchased) you are using so it may be the same issue. In either case you would need to show what errors you are seeing for anyone to make a suggestion as to what may be wrong.


VC++ 2010 will be far more standards compliant than VC++ 6 was. So it''s not surprising that old code written for VC 6 does not compile any more. You will probably have to go through the code and make changes to ensure that the code conforms with the updated compiler.

You can post some of the errors here (maybe in a separate thread) and I (and others here) will be glad to help you resolve them.


post your errors, i''ve upgraded old projects before and can probably help. there''s a few things that have changed and the errors sometimes don''t give you great information but its very doable.


这篇关于VC6至Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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