Programming Pillars Introduction to Object- Oriented Programming.
Introduction to Visal Programming
-
Upload
rajesh1158 -
Category
Documents
-
view
224 -
download
0
Transcript of Introduction to Visal Programming
-
8/9/2019 Introduction to Visal Programming
1/24
INTRODUCTION TO VISUAL
PROGRAMMING
K.Muneeswaran
-
8/9/2019 Introduction to Visal Programming
2/24
Windows Programming Vs VisualProgramming
VP - deals with GUI front end and its programming
WP deals with connecting windows (front end) with
applications (backend) and its programming
-
8/9/2019 Introduction to Visal Programming
3/24
is a rectangular area of the screen where the application displaysoutput and receives input from the user.
The first task of the application is to create a window.
Shares the screen with other windows, including those from
other applications.
Only one window at a time can receive input from the user.
The user can use the
Mouse
Keyboard
other input device
to interact with this window and the application that owns it.
WINDOW Win 32 Application
-
8/9/2019 Introduction to Visal Programming
4/24
VC++ has two modes of operations
Text based (conventional programming - main)
GUI based (Programs linked with windows and GUI
controls - WinMain)
WinMain Application Entry and Parameters
Handle to current Instance
Handle to previous instance (multiple instance of the
applications are supported)
Command Line Arguments
Style of window
-
8/9/2019 Introduction to Visal Programming
5/24
Software Development Kit (SDK)
A set of tools and libraries for creating software
applications for Windows operating systems
MFC
The Microsoft Foundation Class Library is an
"application framework" for programming in Microsoft
Windows
Application Wizard
Generates a new, fully functional application from which
one can build a more complex application
MS - Visual Programming
-
8/9/2019 Introduction to Visal Programming
6/24
SDK
Makes use of the windows API written in C language
Every time window attributes have to be specified and
registered
-
8/9/2019 Introduction to Visal Programming
7/24
MFC
MS provides a rich set of classes of window objects andcontrols specifying their attributes
C++ based
Made up of ready made classes
Both applications and windows are class based
CWinApp
The base class from which you derive a
Windows application object
CWnd
Provides the base functionality of all window
classes in the Microsoft Foundation Class
Library.
-
8/9/2019 Introduction to Visal Programming
8/24
Application Wizard
Ease the developers work
Developer needs to know the structure of VC++
Template header and C++ files are automatically created
-
8/9/2019 Introduction to Visal Programming
9/24
CObject
CCmdTarget
CWnd
CException
CFile
CDC
CArray
Class Hierarchy
-
8/9/2019 Introduction to Visal Programming
10/24
Derivation of CDialogBar
-
8/9/2019 Introduction to Visal Programming
11/24
Derivation of CDialog
-
8/9/2019 Introduction to Visal Programming
12/24
is a structure that defines
a set of graphic objects
their associated attributes
and the graphic modes that affect output.
Thegraphic objects include
a pen for line drawing
a brush for painting and filling,
a bitmap for copying or scrolling parts of the screen
a palette for defining the set of available colors
a region for clipping and other operations
and a path for painting and drawing operations
Device context
-
8/9/2019 Introduction to Visal Programming
13/24
Messages and Window procedure
Input
Keyboard events
Mouse eventsOutput
GDI and devices
Bitmap
DirectX
-
8/9/2019 Introduction to Visal Programming
14/24
Window Controls
Accelerator
Bitmap
Cursor
Dialog
HTML
Icon
Menu
String Table
Tool bar
-
8/9/2019 Introduction to Visal Programming
15/24
Dialog and associated controls
Label
Edit Box
Push button
Text Box
Scroll bar (vertical, horizontal)
Drop down list etc
-
8/9/2019 Introduction to Visal Programming
16/24
Document - View architecture
Document : 13112006
View : 13-11-2006
13/11/2006
11/13/2006
11:13:2006
-
8/9/2019 Introduction to Visal Programming
17/24
-
8/9/2019 Introduction to Visal Programming
18/24
DCOM architecture
-
8/9/2019 Introduction to Visal Programming
19/24
formerly known as OLEcontrols orOCXcontrols,
are components (or objects)
can be inserted into a Web page or other application
to reuse packaged functionality someone else programmed.
Also be used in applications written in many programminglanguages (including all MS programming and database
languages)
Hundreds of ActiveX controls
simple timer control
Sophisticated control like
word processor
Spread sheet
ActiveX Controls
-
8/9/2019 Introduction to Visal Programming
20/24
Based on Distributed COMDCOM Distributed Component Object Model
Scalable
Feature two way communication with the containers
4 ways to write an ActiveX control
MFC
ActiveX Template Library (ATL)
BaseCtrl framework
Visual J++ (COM objects only)
ActiveX Controls Contd
-
8/9/2019 Introduction to Visal Programming
21/24
Additional support by VC++
Support for
data base connectivity
Networking (WinSock)
TAPI
Multimedia
Client/Server
HTTP
and what not
-
8/9/2019 Introduction to Visal Programming
22/24
Support for Database connectivity (ODBC,DAO)
-
8/9/2019 Introduction to Visal Programming
23/24
-
8/9/2019 Introduction to Visal Programming
24/24
THANK YOU