[go: up one dir, main page]

0% found this document useful (0 votes)
89 views11 pages

Lets Begin Visual C++

Beginning to delve into windows programming. Visual C++ being a powerful language with Microsoft foundation classes is a great tool.

Uploaded by

Jyoti Matta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views11 pages

Lets Begin Visual C++

Beginning to delve into windows programming. Visual C++ being a powerful language with Microsoft foundation classes is a great tool.

Uploaded by

Jyoti Matta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 11

Lets Begin Visual C++

Your guide to visual programming language


using Visual Studio.

Windows Programming
A Windows application primarily appears as a rectangular object that occupies a portion of the screen. This type of object is under the management of the operating system, Microsoft Windows. Based on this, for an application to become useful, it must be opened. An application must have an entry point. On a C++/CLI application, this entry point is a function called main. Whereas, a conventional C/C++ application takes full control of operating system and its difficult for the operating system to claim back memory from the application.

Figure these out.!!


What is Windows Programming and How is it different from conventional C/C++ Programming? What is MFC? Conquering the .Net Framework. Working with CLR. Working with Projects and Solutions and how the two differ.

Visual C++
Microsoft Visual C++ is a programming environment used to create computer applications for the Microsoft Windows family of operating systems. It uses C++ as the base language and relies on various libraries to extend it. MSVC supports a large collection of languages (including C++ and Managed C++) and libraries (including Win32, MFC, .NET, and COM, just to name a few). Visual C++ enables developers to Build Web applications Smart-client Windows-based applications Solutions for thin-client and smart-client mobile devices.

Choose your Library.


Win32 Applications.
Win32 is a library of data types, constants, functions, and classes (mainly structures) used to create applications for the Microsoft Windows operating system.

MFC Libraries.
The Microsoft Foundation Classes library, or MFC, is a custom implementation of the Win32 library. The MFC offers everything available in Win32 but using the C++ language.

.Net Framework.
This library allows you to create graphical, databases, XML-based, web services, and web-based applications. Once an application has been created and is satisfactorily functional, it can be distributed to people who can use it. To make this possible, the .NET Framework is implemented in two systems: the class library and the common language runtime (CLR).

Class Library and CLR


The .NET Framework class library is a collection of fully functional object-oriented classes in the tradition of C++ covering all possible areas of application programming including Windows controls, file processing, XML, communication, web, databases, etc. This library is created to be used by various computer languages or programming environments.

After an application has been created, it must be compiled so it can be used as necessary. Another goal of the .NET Framework is to make it possible for a library or service created from one language to be used in an application created using another language. To make this possible, code must be compiled so that an external engine, and not the environment used to create code, can compile, manage, and execute it. That's the role of the common language runtime. The CLR takes care of code execution, memory cleanup, thread management, security, etc. Such code is referred to as managed code. Code that is not compiled into the CLR is referred to as unmanaged code.

Creating Projects
A project is defined as a configuration and a group of files that produce a program or final binary file or files. Each project contains at least two configurations a debug configuration and a retail or release configuration.

Solutions and Projects


A solution can contain multiple projects and a project typically contains multiple items. These containers enable you to take advantage of the IDE in the following ways: Manage settings for your solution as a whole or for individual projects. Use Solution Explorer to handle the details of file management while you focus on items that make up your development effort. Add items that are useful to multiple projects in the solution or to the solution without referencing the item in each project. Work on miscellaneous files that are independent from solutions or projects.

Visual C++ Contd..


You can create Visual C++ projects in several ways: You can use project templates, such as the CLR Console Application Template (C++), to help you quickly create simple projects. You can also use application wizards to help you create a solution. A solution can contain many projects and can be coded in any language that is included with Visual Studio.

Project Types
Application Wizards Project Templates Code Wizards Property Pages

Visual C++ can be Used for:Visual C++ enables developers to Build Web applications Smart-client Windows-based applications Solutions for thin-client and smart-client mobile devices.

You might also like