Win 32 API Programming:
Interface:
Any program is defined to be a set of instructions given by the programmer to the computer for processing.
The user who is using the program should see the result of the program or should interact with the program by giving some input to it.
Interface is where the user can interact with the program.
Any user can interact or use the program in two ways.
• With the help of Characters.
• With the help of Graphics.
The interface that contains characters is Character User Interface or CUI.
Example:
DOS operating system has character user interface.
The interface that contains graphics is Graphical User Interface.
Example:
Windows operating system has Graphical User Interface, this is because of the programs with a number of built in functions and data which is not present in other Character User Interface operating system.
Differences between DOS and Windows:
Interaction with hardware devices:
DOS programs directly interact with hardware like memory and printer ports.
Note:
Port is the location where we can interact with the hardware devices.
Windows provides device drivers and functions, so that our program can call them
Whenever they wanted to use.
Note:
Device drivers are special programs required to access any Hardware devices.
They will drive to and from the devices.
And the functions, provided by windows in order to use any hardware device are
called GDI (Graphical Device Interface) functions.
GDI functions internally take the help of a data structure called Device Context, in order to get the information about the hardware devices.
Windows maintains information about output devices in an internal structure called Device Context.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment