C++/CLI: The Visual C++ Language for .NET by Gordon Hogenson

By Gordon Hogenson

C++/CLI: The visible C++ Language for .NET introduces Microsoft's extensions to the C++ syntax that let you goal the typical language runtime the major to the center of the .NET 3.0 platform. In 12 no-fluff chapters, Microsoft insider Gordon Hogenson takes you into the middle of the C++/CLI language and explains either how the language parts paintings and the way Microsoft intends them for use. Compilable code samples illustrate the syntax as easily as attainable, and extra tricky code samples convey how the hot syntax could often be used.

Show description

Read Online or Download C++/CLI: The Visual C++ Language for .NET PDF

Best c & c++ books

Mastering Asp.Net with Visual C#

ASP. internet is Microsoft's new expertise for constructing complicated, interactive net purposes. This complete consultant takes C# programmers via the entire steps of constructing internet purposes that leverage the whole energy of the . web applied sciences. It comprises in-depth assurance of server-side programming with ASP.

Practical C++ Programming, Second Edition

C++ is a robust, hugely versatile, and adaptable programming language that permits software program engineers to arrange and procedure info fast and successfully. yet this high-level language is comparatively tough to grasp, no matter if the c program languageperiod. The 2d version of useful C++ Programming is a whole advent to the C++ language for programmers who're studying C++.

C++ Toolkit for Engineers and Scientists

This booklet describes the layout, development, and use of a numerical research software program toolkit. it truly is written in C+ +, model 2. zero, and makes crucial use of that language's Object-Oriented Programming (OOP) good points. Its improvement setting is the Borland overseas, Inc. , Borland C++ compiler, model five.

Additional resources for C++/CLI: The Visual C++ Language for .NET

Sample text

In this particular case (Listing 2-7), the compiler knows that the enum value will never fail to be converted to an unsigned integer. fm Page 19 Friday, October 13, 2006 2:14 PM CHAPTER 2 ■ A QUICK TOUR OF THE C++/CLI LANGUAGE FEATURES Interface Classes Interfaces are not something that is available in classic C++, although something like an interface could be created by using an abstract base class in which all the methods are pure virtual (declared with = 0), which would mean that they had no implementation.

Initialize( /* ... */ ); } } Depending on how important this particular drawback is to you, you might decide that a value type just won’t work. You have to look at the problem and determine whether the features available in a value type are sufficient to model the problem effectively. Listing 2-4 provides an example where a value type definitely makes sense: a Point class. Listing 2-4. cpp value struct Point3D { double x; double y; double z; }; Using this structure instead of the array makes the Atom class look like Listing 2-5.

Programs that run on the CLR virtual machine use a language known as the Common Intermediate Language (CIL). Microsoft’s implementation of CIL is often referred to as MSIL, or just plain IL. The CLR relies on a JIT (just-in-time) compiler to translate the CIL code on demand into machine code in order to execute the program. The CLR virtual machine is Microsoft’s implementation of the Virtual Execution System (VES), which is part of the ECMA standard. As processors change, you need only change the way in which the executable code is generated from the processor-independent layer, and you’ll still be able to run the old programs written for the earlier processor.

Download PDF sample

Rated 4.93 of 5 – based on 15 votes
Category: C C