Presentation is loading. Please wait.

Presentation is loading. Please wait.

Visual C++.NET Hong Li. Introduction to.NET Microsoft announced in June 2000 Microsoft announced in June 2000 A new software –development model that allows.

Similar presentations


Presentation on theme: "Visual C++.NET Hong Li. Introduction to.NET Microsoft announced in June 2000 Microsoft announced in June 2000 A new software –development model that allows."— Presentation transcript:

1 Visual C++.NET Hong Li

2 Introduction to.NET Microsoft announced in June 2000 Microsoft announced in June 2000 A new software –development model that allows applications created in disparate programming languages to communicate with each other 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 Allows developers to create Web-based applications

3 Introduction to.NET One key aspect of the.NET strategy is its independence from a specific language or platform 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 Developer can create a.NET application by using any combination of.NET-compatible languages

4 Introduction to.NET Programmers can contribute to the same software project, writing code in the.NET languages in which they are most proficient 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 Such as Visual C++.NET, C#, Visual Basic.NET and many others

5 Visual C++.NET Known as a visual programming language-the developer uses graphical tools, such as Visual Studio.NET, to create applications Known as a visual programming language-the developer uses graphical tools, such as Visual Studio.NET, to create applications Visual C++ uses MFC Visual C++ uses MFC.NET provides an additional library for implementing GUI, networking, multithreading and other capabilities.NET provides an additional library for implementing GUI, networking, multithreading and other capabilities

6 Visual C++.NET Visual C++.NET introduces Managed Extensions for C++ that enable a programmer to access the.NET framework. 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 Programmers can use the.NET to create objects that provide automatic memory management C++ -- standard C++ C++ -- standard C++ MC++ -- managed extension to C++ MC++ -- managed extension to C++ Visual C++.NET – compiler used to write both managed and unmanaged code Visual C++.NET – compiler used to write both managed and unmanaged code

7 How to use Visual Studio.NET IDE( integrated development environment) From Start->program From Start->program Click Microsoft visualStudio.NET Click Microsoft visualStudio.NET Click New Project to create a new project Click New Project to create a new project Or select a recent project on start page Or select a recent project on start page Or from file->new to create new project Or from file->new to create new project Or from file->open to open an existing project Or from file->open to open an existing project

8 How to use VisualStudio.NET In pop-up window In pop-up window select visual C++ projects in left panel select visual C++ projects in left panel Select Console application in right panel Select Console application in right panel Give a name to the project by Name Give a name to the project by Name Select a location where project will be created Select a location where project will be created Click OK Click OK

9 To create an unmanaged project ( write a standard C++ code) In pop-up window, In pop-up window, Click application setting Click application setting Select empty project Select empty project Click finish Click finish

10 To add a source file: From file->new->files 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) 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. In pop-up window, click C++ file(.cpp), name the file and select a location and then click open.

11 Create a window project From File->new ->project From File->new ->project Select Windows form application Select Windows form application Name the project, select a location then click ok. Name the project, select a location then click ok.

12 Compile, build and exectute To compile a.cpp file, To compile a.cpp file, Click build->compile Click build->compile To build the project To build the project Click build->Build Solution Click build->Build Solution To exectue To exectue Click Debug->start without Debugging Click Debug->start without Debugging (You can run debug when you need to) (You can run debug when you need to)


Download ppt "Visual C++.NET Hong Li. Introduction to.NET Microsoft announced in June 2000 Microsoft announced in June 2000 A new software –development model that allows."

Similar presentations


Ads by Google