将Visual Studio vc ++ 2003项目转换为Visual Studio vc ++ 2010 [英] converting visual studio vc++ 2003 project to visual studio vc++2010

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

问题描述

大家好,
由于Microsoft提供了新版本的studio.i,因此决定将基于窗口的应用程序从Visual Studio 2003迁移到Visual Studio2010.

与2003年相比,从2010年开始,一项很棒的技术更注重完全控制.

很好,
但是将我的基于Windows的程序从2003转换为2010时会出现一个问题,
Studio的2010版本出现了以下2003年没有出现的错误.

Hi all,
As microsoft provide new version of studio.i deciced to moved my window based application from visual studio 2003 to visual studio 2010.

a great Techanology aspected more use full control from 2010 compare to 2003.

Fine,
but one problem arise when convert my window based program from 2003 to 2010,
2010 version of studio gives following errors that not given in 2003.

for(int i = 0;i<10;i++)
{
    ......
}


未声明的标识符"i"

现在当我尝试时就解决了相同的问题,


Undeclared identifier "i"

now same problem solved when im try like,

int i;
for(i = 0;i;<10;i++)
{
    ......
}



如果我采用上述技术,往往会取代我所有的循环.
可能要花我7或8天的时间.
因此有两种选择.
GOOGLE

专家.

在Google上度过了整整一天之后,没有发现任何有用的想法.
因此需要专家.

请,
仅向我提供一个提示,即可将整个Visual Studio 2003项目转换为2010,而不会出现单个错误.

谢谢.



if i go with above techanique that tends to replace my all for loops.
that may take my 7 or 8 days.
So there are two aternative.
GOOGLE
and
Experts.

After spending my whole day on google doen''t found any think useful.
So need expert.

Please ,
Provide me even single hint that convert my whole visual studio 2003 project to 2010 without an single error.


Thanks.
santosh dhanawade.

推荐答案

您可以更改项目设置.请参见/Zc:forScope(对于循环作用域,强制符合性) [ ^ ].

您也可以使用符合编译指示在源文件中更改该选项. a> [ ^ ].
You may change your project settings. See /Zc:forScope (Force Conformance in for Loop Scope)[^].

The option can be also changed in the source files using the conform pragma[^].


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

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