我的代码无法从VS2005迁移到VS2010 [英] My code can not migrate from VS2005 to VS2010

查看:82
本文介绍了我的代码无法从VS2005迁移到VS2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有个大问题:S通常我是在VS2005 xp os上开发应用程序,但是我的代码想从vs2005迁移到vs2010,而且我的代码还包括单独编码的可视C ++和C#文件,它可以在vs2005中很好地运行,没问题,但是当我的代码从vs2005迁移到vs2010 win7 os时,我遇到了成千上万的错误:(

一些错误:

Hello everyone, I have big a problem :S Normally I am developing application on VS2005 xp os but My code want migrate from vs2005 to vs2010, also My code is including seperate coded visual C++ and C# files, its running in vs2005 well, no problem but when my code migrated from vs2005 to vs2010 win7 os, I am getting thousands error :(

some errors:

"Error C4430:missing type specifier int-assumed Note: C++ does not support default-int"
"error C2143: syntax error: missing ';' before '{' "
"error C2143: syntax error: missing ';' before '^' "
"error C2065: 'e' : undeclared identifier."


我要做什么:(有什么主意?谢谢你...很好地回答了您:)


what do I for it :( anything idea? advance in thankx... very nice for your answers :)

推荐答案

第一个错误是有意义的错误.
在C中,如果您执行以下操作:
The first error is the meaningful one.
In C, if you do something like this:
foo(int j)
{
    return j + 17;
}


假定函数foo()返回一个整数.
在C ++中,这是一个错误.程序员必须显式声明返回类型.
Visual C ++越来越接近每个新版本中的标准.

通常,如果编译器给您错误,则唯一的选择就是修复错误.

希望这会有所帮助,
巴勃罗.


the function foo() is assumed to return an int.
In C++, this is an error. The programmer must explicitly declare the return type.
Visual C++ is getting closer and closer to the standards in each new version.

In general, if your compiler gives you errors, your only option is to fix them.

Hope this helps,
Pablo.


这篇关于我的代码无法从VS2005迁移到VS2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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