Experience the next generation of Microsoft Platform Development Visual Studio 2005

xiaoxiao2021-03-06  93

I bored today in Microsoft website and I accidentally saw the EXPRESS BETA version of Visual Studio 2005, so I downloaded them to trial.

The earliest introduction to the VS2005 is on DevDays 2004, that is still a preview version, then I saw the relevant introduction in the MSDN Development Selection Magazine sent from the last Microsoft Developer General Assembly, but there is no The opportunity to try, let's try it with this time.

This offer download is the 2005 version of VS2005 Express Beta, including VB, C #, VC , J #, WebDev, and SQL Server, but all Express is a streamlined version, which only provides the most basic feature. In addition, it is also available for download and .NET Framework 2.0, VJ # Redistributable Pack 2.0 and Lite version of MSDN. This is also the Dongdong to order a free CD to Microsoft, but unfortunately pay $ 30 postage.

I installed .NET Framework 2.0, VJ # Redistributalbe Pack and SQL Server 2005. Then install VC (several other packs are still in download). The whole process is quite smooth, except for the SQL Server installer reminds me that my machine configuration is too low: (

Let's take a look at VC .

The most obvious change on the interface is actually the least important changes, compared with the vs.net2003, but the style and layout are adjusted. But we can also see some new features.

The first is to add three panels, the left PROGRAM Manager, the middle definition and the Call Browser.

Program Manager's functional truth says that I am not ambiguous, as if it is used to manage a variety of generated modes of a project, such as debug mode, Release mode, and more.

Definition Panel Features I have seen in Source Insight, or is more useful, that is, when the magazine in the editing area falls on a certain identifier, the definition panel will display the identifier for your reference, and Switch quickly to the relevant location to modify it.

The Call Browser panel can display a method to call the other methods and which places are called in this method. I feel that this feature will help code reconstruction. I regret that there is no reconstructed function in VC , it seems to be only implemented in VC #.

VC starts from the 2003 version of the visual design of Windows Forms, in the 2005 version, the form design function has a lot of progress, the most obvious is the auto-alignment of the control, saves the operation of the originally annoying alignment control. Smart tag function (if you use VS2003 to do ASP.NET, you will notice that there will be a green small triangle on the corner of the control, which is the smart tag function, but it is not used) and starts on some controls. The window designer also adds a modification called Property Editing View to make a modification of the common properties of the control.

At the same time, for Windows Form itself, .NET 2.0 also adds a lot of controls, and the new DataGridView control has replaced the original DataGrid, and the Serial Port, BackgroundWorker (Multi-Thread), WebBrowser Many practical components such as managed packages for WebBrowser ActiveX controls. Unfortunately, I didn't find support for ADO.NET in this Express version, so I haven't had aware of data access.

In fact, VC2005's biggest change is not a change in the development environment. Since the original VC is used to support .NET's Managed C syntax is too troublesome, the VC2005 introduces a new syntax to support .NET, which is a nearest hot topic C / CLI, it has expanded standard C and is currently working in international standardization. Regarding the new features of C / CLI, I am studying, and then summarize the post. Today we will explore what new features from C / CLI in VC 2005. First, C / CLI introduces some new data types Keywords: Ref class / ref structure, value class / value structure, interface class / interface structure, enum class / enum struct, Class and Struct in C / CLI do not have C # The language, but still remains in C , that is, the default access level is different. In C / CLI, Ref class / ref struct has the language of Class Class in C #, and the Value Class / Value Struct has Struct's language. The corresponding Interface Class / Interface Struct and Enum Class / Enum struct are classified in the language of Interface and ENUM, respectively. Here, with Ref class as an example, although they are two words, they together constitute a keyword, that is, in the C / CLI, the keyword may contain spaces, that is, to combine multiple words Understand it is a keyword, but you can't open them. In C / CLI, keywords are also divided into context sensitive and context, and the keywords mentioned earlier are insensitive, that is, they represent keywords, and they cannot be used as identifiers. . The context-sensitive keywords are only used as a keyword, otherwise there will be no special meanings, including the identifier. The newly added context-sensitive data type keywords are: Property, Delegate, and Event, they are basically equal to the corresponding keywords in C #. In addition to the data class, C / CLI also introduces other new keywords: Abstract, New, Override, Sealed, Generic, WHERE, FINAL, NULLPTR, the meaning of the meaning in C # in C # Consisten to, I will introduce some of the keywords in some C # later. Two new operators, ^ and% are introduced in C / CLI, which are used to support the concept of a new "handle" in C / CLI. In addition, C / CLI has introduced some new language configurations, which are implemented in a library, and do not appear as a keyword. In C / CLI, since the hosted stack is introduced, the memory allocation method except that the C original Native stack allocation and heap allocation, and there is a distribution on the hosted stack, which cooperates with the grammatical characteristics of this concept. Includes a handle, ^ and% operator, gcnew and other keywords.

转载请注明原文地址:https://www.9cbs.com/read-97112.html

New Post(0)