将VS 2005转换为VS 2010 VC ++ [英] Convert VS 2005 to VS 2010 VC++

查看:79
本文介绍了将VS 2005转换为VS 2010 VC ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试转换用VC ++和VS2005开发的旧项目.
但是我遇到了100多个错误,主要是:

错误5错误C4430:缺少类型说明符-假定为int.注意:C ++不支持默认int c:\ program files \ microsoft visual studio 10.0 \ vc \ atlmfc \ include \ atltransactionmanager.h 202

请帮忙.

我的XP机器上同时安装了VS2005和VS2010.

谢谢!

Hi

I am trying to convert an old project developed in VC++ and VS2005.
But I am getting over 100 errors, mostly :

Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\atltransactionmanager.h 202

Please help.

I have both VS2005 and VS 2010 installed on my XP machine.

Thanks!

推荐答案

您定义的某些内容*应该*具有指定的类型,但没有.这可能是宏,或者与消息映射条目有关.
You have something defined that *should* have a type specified, but does not. This is probably a macro, or something having to do with a message map entry.


检查导致错误的CPP文件,然后尝试查找问题.您可能需要重新排序ATL''文件#inclusion.
Check the CPP file that is causing the error, and try to locate the problem. You may need to re-order the ATL'' file #inclusion.


感谢您的答复.
但是我仍然有这个问题.

我认为这与过时的SDK有关.

我有两台电脑.
一台安装了VS2008& VS2010,让我们将此计算机称为A
另一个安装了VS2005& VS2010,让我们将此计算机称为B.

一台计算机A转换成功,但是我遇到此问题的是计算机B.

我厌倦了在计算机A上转换应用程序并在计算机B上打开项目,这仍然行不通.

有什么方法可以更新SDK或将应用程序指向VS2010随附的新SDK?

谢谢!
Thanks for the responses.
However I am still having this problem.

I think it has to do with an outdated SDK.

I have two computer.
One installed with VS2008 & VS2010, lets call this computer A
The other installed VS2005 & VS2010, lets call this computer B.

One computer A the conversion is successfully, however computer B is where I am having this problem.

I tired converting the application on computer A and opening the project on computer B, this still does not work.

Is there a way I can update the SDK or point the application to the new SDK that comes with VS2010?

Thanks!


这篇关于将VS 2005转换为VS 2010 VC ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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