.NET Framework in C++

Rate this post
To begin, I will talk about “.Net Framework”.

This is actually a development platform proposed by Microsoft as a basis for application vendors in the Windows platform.
It includes the necessary tools to develop computer programs. .NET Framework provides a smoother when using a computer program. It increases the ability of the operating system that it can better manage the implementation and start-up of installed software. It also improves access to data by amplifying the action of browsers.
It enables the integration of databases in the codes during programming. It offers more control over the HTML to better build web forms. This software supports the creation of filters to requests to facilitate the exploitation of information banks. .NET Framework is capable of displaying errors during programming. It allows to run the program step by step to allow the developer to discover the source of the bug during execution.

Is it an extended version of the standard C ++ language that provides the programming support managed. These extensions are constituted by a set of keywords and attributes.
Files that use Managed Extensions must start with this code:

#using <mscorlib.dll>
using namespace System; //

It will also have to use the compiler option (/clr (Common Language Runtime Compilation))

To compile the application in managed code.

That said, why use Managed Extensions?

Thanks to them, it is possible to combine the traditional C ++ code and Managed C ++ code in the same application.
New applications written with Managed Extensions can indeed take advantage of traditional code of features and functions in managed code. You can easily integrate existing components in .NET Framework components via these extensions, allowing to reuse code that has been developed so far while moving to the .NET Framework.

Now to the C ++ language.
As said earlier, the C ++ language is an “improvement” of the C language. The C language was developed by M.Ritchie BWKernighan and early 70. Bjarne Stroustrup, an engineer considered the inventor of C ++, decided to add the properties to the C language of “oriented approach object “. Thus, in the late 80s a new language, called C with classes appears.
He then was named C ++, to demonstrate that this is the enhanced C language.
C ++ takes almost all of the concepts present in the C language, so that programs written in the C language function with a C ++ compiler. In fact the C ++ language is a superset of C, there are added, inter alia, object features:

– Encapsulation
– The legacy (single and multiple)
– Polymorphism

and a set of new features, including:

– The type of control
– Default arguments
– Function overloading
– Inline functions

The required materials needed

You must have a text editor to enter the text of the source files and a compiler to build the executable file from the source file. Most compilers are IDE (Integrated Development Environment) that also provide a code editor. You can choose the Windows Notepad, the DOS Edit command, Emacs, vi or any program that contains a recording command in text format, but in this case you do not get the syntax assistance from the editor of an IDE: as you enter the code, the text is displayed in a color corresponding to its function. It can detect very quickly typing errors or oversights.
In C ++ source file takes the extension .cpp, .c, or .cp. In this work, we chose the .cpp extension, which is the one most compilers affect default text files.