Why need we migrate from vc6 to vc8? (for developer, for final user, for IT corporation)
Key words: visual c++ 6.0, visual c++ 8.0, visual studio 2005
As of Visual C++ 2005, the Standard C++ Library and the ATL, MFC, and CRT libraries are side-by-side shared assemblies with manifests. Similarly, the compiler and linker settings now default to manifest generation using mt.exe. This will ensure that all Visual C++ executables have a manifest that refers to their dependence on ATL, MFC, and CRT.
Visual C++ 2005 supports the use of the Standard C++ Library and the ATL, MFC, and CRT libraries as mixed assemblies compiled with /clr. These mixed libraries allow you to use all of their existing functions when your code contains a mixture of native code and MSIL-based __clrcall code.
Initialization of Mixed Assemblies
The library support changes in Visual C++ 2005 resolve the "loader lock" issues that applied to mixed DLLs in Visual C++ .NET and Visual C++ .NET 2003. However, there is still a restriction that your DllMain code must never access the CLR.
For example:
Vc6 pass:
for (int i = 0; i < 256; i++)
{
}
Vc8 error: do not define parameter i.
for (i = 0; i < 256; i++)
{
}
Visual studio 2005 is a more powerful, relax develop tool.
Debug tool
The one of the more important improve is the debug window. It will show the detail data of a container, for example debug vector or list. We do not need get the items value by vector._Myfirst[0], vector._Myfirst[1], or get the container’s size by vector.size(). For developer, it is great.
Code pucker
#pragma region lets you specify a block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor. For example:
#pragma region Region_1
void Test() {}
void Test2() {}
void Test3() {}
#pragma endregion Region_1
1. 更强大IDE开发环境可以有效的提高程序员的开发效率和减少团队培训的工作量。
2. Manifest 为DLL heap提供了一个解决方案,有效的减少了bug的产生。当然由于硬盘的扩大和网络环境的改善,由此带来的分发部署文件的增大可以容忍。
3. vc8支持CLR的混合编译,这在某种程度上有利于我们从vc8迁移到.net 3.0平台。
4. Vc8 支持新的类库,这样我们不用为了利用某个DLL里的函数而写一大堆加载和查找函数地址的代码,减少了产生bug的机会。
5. 更好的支持C++标准,for example: std::copy, getenv 等函数使用时会被提示为: warning C4996: 'getenv' was declared deprecated.
What's New in Visual C++
Bootstrapper for the VC++ 2005 Redists