In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is mainly about "what are the new features of Visual C++ in VS2010", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "what are the new features of Visual C++ in VS2010?"
Improved project system support
As we mentioned last time, in previous versions of Visual Studio, MSBuild did not support the Visual C++ project very well, so Microsoft instead offered a specialized alternative: VCBuild. In Visual Studio 2010, Microsoft finally improved this.
Integrate many unique features of VCBuild into MSBuild and use MSBuild instead of VCBuild. Although VCBuild has many practical features for the Visual C++ project, the new MSBuild not only inherits these features, but also provides more new features to attract users to upgrade to this new build platform:
Diagnostics: MSBuild enhances its diagnostics to help users find and debug build errors more easily. For example, MSBuild can help you decide how to compile certain source files in a specific order, because MSBuild can detect dependencies between these files.
Scalability: with MSBuild, users can build different solutions for specific platforms. Alternatively, you can use different versions of the compiler during the build process. Connectors, etc., make our solution more scalable.
Integration: we can add our Visual C++ project to an existing MSBuild environment. For example, we can integrate a new Visual C++ project into an existing MSBuild environment, although this MSBuild environment includes Visual C# and Visual Basic projects using the .NET Framework.
As an important feature of Visual Studio, Multi-Targeting has been vigorously promoted by Microsoft. Because it makes it possible to "code at once, run on multiple platforms". This feature brings great convenience to programmers so that they no longer have to worry about the chaotic platform of the target machine.
However, in previous Visual Studio, the Multi-Targeting feature was only supported in managed languages and could be targeted at different versions of the .NET Framework. Now in Visual Studio 2010, with the use of MSBuild, native code Multi-Targeting has become possible.
In Visual Studio 2010, we can choose between the toolset of Visual Studio 2010 or the toolset of Visual Studio 2008. When we don't want to upgrade to Visual Studio 2010 prematurely for compatibility or other reasons, we can benefit from Multi-Targeting features.
Choose to use Visual Studio 2008's Visual C++ library and compiler, while using Visual Studio 2010's IDE. In this way, it is possible to have both fish and bear's paw. When we finally decide to upgrade to the library and compiler of Visual Studio 2010, we only need to make a simple setting in the MSBuild or project properties. Figures 2 and 3 show the compilation records of the project under different toolset settings.
Improved Visual Studio user experience
I believe that many Visual C++ programmers who use Visual Studio as a development tool will miss the days of using Visual C++ 6.0. With Visual Assist as an auxiliary tool, Visual C++ 6.0 has become the best choice for C++ programmers to develop tools.
With the upgrade of the Visual Studio version, IDE introduced some new features, but it made the entire IDE very bloated and inefficient. Now, Visual Studio 2010 has done a lot of work on the efficiency of IDE to improve our development efficiency:
Header file editing
In previous Visual Studio, if we edited a header file referenced by multiple source files, Visual Studio would have to interrupt your work because it took a long time to reprocess the entire project. Now, in the new Visual Studio 2010, when we edit the header file, we can continue to work, while Visual Studio will process the new header file in the background, and IntelliSense will be updated soon to reflect our changes to the header file.
Change the project configuration
Similar to header file editing, in previous Visual Studio, when we changed the project configuration, Visual Studio would interrupt our work to deal with the project configuration changes. For example, when we switch the current project configuration from Debug to Release, Visual Studio takes a long time to deal with the project configuration change.
During this time, Visual Studio is like dead, and we can do nothing but wait. (I used to think of it helplessly as a humanized design of Visual Studio, deliberately letting us sedentary programmers get up and take a walk while waiting.) In the new Visual C++, we can continue to work without having to wait after modifying the project configuration.
Configure the physical distribution of the project
Is your project very large, containing a lot of source files? If so, in previous Visual Studio, it would have been very slow when it processed all the files for the project. In order to solve this file, we often have to split a project into multiple projects, so that there are much fewer source files in each project.
Visual Studio will appear faster each time it processes fewer files. In the new Visual Studio, it improves the efficiency of processing source files, even if your project has many source files, Visual Studio can still remain active while dealing with these files without "fake death". This feature allows us to reconfigure the source files that need to be distributed in multiple projects as needed to make the physical distribution of the project more reasonable.
Smarter IntelliSense
C++ as the most complex programming language, its IntelliSense has always been a difficulty in Visual Studio. In previous Visual Studio, C++ 's IntelliSense was based on the compiler, which could understand complex C++ code. However, for some of the more advanced C++ code, especially some content related to macros.
IntelliSense seems powerless. In the new Visual Studio, the improved IntelliSense is smarter and can understand almost any complex form of C++ code. With the new IntelliSense, it is estimated that Visual Assist, which is loved by many programmers, will be given the cold shoulder.
At this point, I believe you have a deeper understanding of "what are the new features of Visual C++ in VS2010?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.