Pencil Designer
Posted Date Unknown 0 Comment


This article is about a project called ”PencilDesigner”  which is done in VC++. This project about drawing a pencil and to display the Pencil in three different sizes. Inputs are received through a dialogue box.There is also an option to enter a caption for the pencil. This project will also show you how to develop a basic VC++ application and it upgrades VC++ 6.0 project to Visual Studio 2005 project.

Screen Shot


This article assumes that you have some basic knowledge in C++ concepts including class, function, member variable, constructor etc.

Basic Work Flow Diagram

The basic steps which I used in the development of the VC++ program are given below.

Using the Project

You can open the project both in Visual Studio 6.0 and Visual Studio 2005.

To open the project in Visual Studio 6.0:

1. Open the project folder and explore “.dsw” extension file.
2. Click “Build All” button to compile the project and then click the “Execute” button to display the output.
3. You can view and edit the project as the main source code is given in ‘PencilDesignerView and PencilDesignerDlg’ classes.

To open the project in Visual Studio 2005:

1. Open the project folder and explore “.sln” extension file.
2. Click “Build Project” button from “Build” Menu to compile the project and then click “Start Debugging” button from “Debug” Menu to display the output.

Points of Interest

Some of the used features and classes of VC++ in this project are:  MFC App Wizard, Single Document Interface, SDI Application, CWinApp, CView, CDocument,  CFrameWnd, CString, CDC, CDialog, CComboBox, Visual Studio 6.0, Visual Studio 2005.


01/04/2012 - Article Created

Please download the source code and the associated project binaries form the below link and try experimenting with the source code and binaries.

See All Responses Below...
Message Rating
Posted on:
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

Academic Projects

Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud