将Visual Studio vc ++ 2003项目转换为Visual Studio vc ++ 2010

编程入门 行业动态 更新时间:2024-10-17 05:31:19
本文介绍了将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

本文发布于:2023-11-11 05:45:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1577546.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:转换为   项目   Studio   Visual   vc

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!