---
title: "Major Parts of a Visual C   Program"  
description: "There are four major parts of a visual C++ AppWizard program:The application objectThe main window objectThe view objectThe document object  The Appli"  
author: "Amit Singh"  
published: 2011-05-08  
updated: 2014-09-18  
canonical: https://www.mindstick.com/blog/158/major-parts-of-a-visual-c-program  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 2 minutes  

---

# Major Parts of a Visual C   Program

##### There are four major parts of a visual C++ AppWizard program:

##### · The application object

##### · The main window object

##### · The view object

##### · The document object

***\***

##### The Application object

The [application object](https://answers.mindstick.com/qa/30651/what-is-the-difference-between-session-object-and-application-object), supported in welcome.h and welcome.cpp (the .h file holds the [definition](https://yourviews.mindstick.com/view/70598/false-furore-over-the-leadership-definition-statement-of-army-chief-bipin-rawat) of [constants](https://www.mindstick.com/articles/1813/objective-c-constants) and the declaration of [variables](https://www.mindstick.com/articles/715/php-variables) and methods.

##### The main window object

The main [window object](https://www.mindstick.com/forum/161284/what-are-the-key-properties-of-the-javascript-window-object) is [responsible](https://answers.mindstick.com/qa/94149/who-is-one-of-the-responsible-person-for-the-department-of-space-dos) for everything that surrounds the area where the action –the drawing text and other [graphics](https://www.mindstick.com/articles/336067/html-graphics-using-html) etc. that area are called client area in a window.

\

##### The view object

The view object handles the client area- this is where we shall format and display the data in our [program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program), such as the text we are editing.

\

##### The document object

In [document](https://www.mindstick.com/articles/328642/what-to-consider-while-choosing-a-software-documentation-tool) object we store the data for our program. It handles the display of the data that will fit into the client area in the view object

Overall,

##### the four parts of our Visual C++ program

##### \

##### · CWelcomeApp

##### \
Our window program itself

##### \

##### · CMainFrame

##### \
Our main window

##### \

##### · CWelcomeView

##### \
Handles the data display

##### \

##### · CWelcomeDoc

##### \
Handles our data

---

Original Source: https://www.mindstick.com/blog/158/major-parts-of-a-visual-c-program

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
