将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!