120 likes | 231 Views
Visual C++ .NET. Hong Li. Introduction to .NET. Microsoft announced in June 2000 A new software –development model that allows applications created in disparate programming languages to communicate with each other Allows developers to create Web-based applications. Introduction to .NET.
E N D
Visual C++ .NET Hong Li
Introduction to .NET • Microsoft announced in June 2000 • A new software –development model that allows applications created in disparate programming languages to communicate with each other • Allows developers to create Web-based applications
Introduction to .NET • One key aspect of the .NET strategy is its independence from a specific language or platform • Developer can create a .NET application by using any combination of .NET-compatible languages
Introduction to .NET • Programmers can contribute to the same software project, writing code in the .NET languages in which they are most proficient • Such as Visual C++.NET, C#, Visual Basic.NET and many others
Visual C++ .NET • Known as a visual programming language-the developer uses graphical tools, such as Visual Studio.NET, to create applications • Visual C++ uses MFC • .NET provides an additional library for implementing GUI, networking, multithreading and other capabilities
Visual C++.NET • Visual C++.NET introduces Managed Extensions for C++ that enable a programmer to access the .NET framework. • Programmers can use the .NET to create objects that provide automatic memory management • C++ -- standard C++ • MC++ -- managed extension to C++ • Visual C++.NET – compiler used to write both managed and unmanaged code
How to use Visual Studio .NET IDE( integrated development environment) • From Start->program • Click Microsoft visualStudio.NET • Click New Project to create a new project • Or select a recent project on start page • Or from file->new to create new project • Or from file->open to open an existing project
How to use VisualStudio.NET • In pop-up window • select visual C++ projects in left panel • Select Console application in right panel • Give a name to the project by Name • Select a location where project will be created • Click OK
To create an unmanaged project ( write a standard C++ code) • In pop-up window, • Click application setting • Select empty project • Click finish
To add a source file: • From file->new->files • Or from solution explore window, right click on source file and select add->add new item (If you don’t see solution explore window, from view->solution explore) • In pop-up window, click C++ file(.cpp) , name the file and select a location and then click open.
Create a window project • From File->new ->project • Select Windows form application • Name the project, select a location then click ok.
Compile, build and exectute • To compile a .cpp file, • Click build->compile • To build the project • Click build->Build Solution • To exectue • Click Debug->start without Debugging • (You can run debug when you need to)