且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我对visual C ++项目有疑问

更新时间:2023-02-08 15:50:19

我只能说遗留项目非常草率。然而,这种兼容性问题,特别是从VC6.0到更高版本,是常见的。也就是说,那个版本的编译器本身很邋and,现在已经过时了。你应该解决每个单独编译的失败;这可能会非常痛苦。或者从头开始编写项目,仅使用旧版项目作为参考。没有别的办法了。



-SA


我们必须忍受一些限制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.