我对visual C ++项目有疑问 [英] i had doubt in visual C++ project
问题描述
我下载了一个visual c ++项目。它是在Visual Studio 6.0中开发的。即(VS1998)
但是我正在使用VS2008。 iF I在Vs2008中编译该项目它显示错误...
以下内容放在自述文件中.txt下载项目的文件
此代码必须使用Visual Studio 6.0 C ++构建。不要使用较新版本的C ++,因为标准库发生了很大变化,代码无法编译。
我没有VS1998工具。
有没有运行项目的方式.....
请帮帮我一个......
< blockquote>我只能说遗留项目非常草率。然而,这种兼容性问题,特别是从VC6.0到更高版本,是常见的。也就是说,那个版本的编译器本身很邋and,现在已经过时了。你应该解决每个单独编译的失败;这可能会非常痛苦。或者从头开始编写项目,仅使用旧版项目作为参考。没有别的办法了。
我们必须忍受一些限制MS和VS.
过去,我做了一些非常简单的步骤。我的建议是:
1.在VS 2008中创建项目/解决方案
2.配置项目设置。有办法自动完成。但最好手动避免任何问题。
3.现在从VS 6.0添加源代码(.h和.cpp)。
有时您仍然会收到很少的编辑或链接错误。这些需要手动解决。
希望这个帮助。
使用NotePad或SublimeText等打开源代码。并将代码复制到VS2008项目中。
i had downloaded one visual c++ project. it is developed in Visual studio 6.0. i.e(VS1998)
but am using VS2008. iF I Compile that project in Vs2008 it shows error...
The below content is placed inside the "readme.txt" file of the downloaded project
"This code must be built with Visual Studio 6.0 C++. Do not use a newer version of C++ as the standard libraries changed a lot and the code will not compile."
I dont have VS1998 tool.
Is there Any way to run the project.....
Please help me some one....
All I can say the legacy project in question is awfully sloppy. Nevertheless, such compatibility problems, especially from VC6.0 to later versions, are a commonplace. That said, that version of compiler itself was quite sloppy and now is well obsolete. You should address each failure to compile separately; and it can be quite painful. Or write the project from scratch, using the legacy one only as a reference. There is no other way.
—SA
We have to live with some limitations of MS and VS.
I have done few very easy steps in past. My suggestion would be to:
1. Create Project/Solution in VS 2008
2. Configure projest settings. There are ways to get that automatically done. But better do manually to avoide any issues.
3. Now add source code (.h & .cpp) from VS 6.0.
Sometime you will still get few compilations or linking errors. Those needs to be resolved manually.
Hope this help.
Open the Source-Code using NotePad or SublimeText, etc. and Copy the Code into an VS2008 Project.
这篇关于我对visual C ++项目有疑问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!