Search This Blog

Thursday, June 3, 2010

VISUAL C++ PROGRAMMING-INTRODUCTION 2 Mark Question


VISUAL C++ PROGRAMMING-INTRODUCTION

1.Define AppWizard

Appwizard is a code generator used to create a working skeleton for the windows with the features source code and features specified through dialog boxes.

2.What are the types of mapping modes?

- MM_HIMETRIC
- MM_ANISOTROPIC
- MM_ISOTROPIC

3.What is the use of setMap Mode command?

It is used to return the previous mapping mode and sets the mapping mode specified in the parameter.

4.What is resole font?

The system font is the font that windows uses by default for text string like strings in titke bars, menus and dialog boxes. The system font is a razor font which means that the characters are defined as blocks of pixels.

5.What is the use of get system metrics function?

This function retrieves information about the size of various graphical item in windows such as icons, occurs, title bars and scroll bars. This function is an important function for achieving device independent graphical outline in the program.

6.What is system modal dialog?

The 16-bit versions of windows support a special kind of modal dialog called a system modal dialog, which prevents the user from switching to another application

7. Mention some of the GDI derived classes?
- Cbitmap
- Cbrush
- Cfont
- Cpalette
- Cpen
- Crgn

8.What are dialog controls?

A dialog control contains a number of elements called controls. These includes Edit controls, buttons ,list boxes ,static text, Etc.
9.Explain the display context classes CclientDC and CwindowDC?

Windows client area excludes the border, the caption bar,and the menu bar.If we construct an object of class Cclient DC,the point (0,0) is at the upper-left corner of the client area.

10.What is the state of the device context?

The current state of the device context includes the following:
Attached GDI drawing objects such as pens,brushes and fonts.
The mapping mode that determines the scale of items when they are drawn.

11.What are GDI objects?

A window GDI object type is represented by an MFC library class.CGD iobject is the abstract base class for the GDI object classes.

12.What is Project?

Project is a collection of interrelated source files that are compiled and linked to make up an executable windows based program or a DLL.

13.What is Make File?

A make file stores compiler and linker options and express all the interrelationships among source files.

14.What is a make program?

A make program reads the make files and then invokes a compiler , assembler, resource compiler and linker to produce the final output, which is generally an executable file.

15.What is Class Wizard?

Class Wizard is a program that’s accessible from visual C++’s view menu.
Class wizard writes the prototypes,the function bodies and the code to link the windows message to the function.


16.What is an application framework?

Application framework is an integraterd collection of object oriented software copmponents that offers all that’s needed for a generic application.

17.Mention the two building options ?

- Win32 Debug
- Win32 Release

18.Mention the two types of fonts.

Two types of fonts are
- Device-independent fonts
- Device-dependent fonts.

19.List the types of video cards used to display the colors

- 256 color video card
- 16 bit color video card
- 24 bit color video card

20.Give the unique features of 24-bit color video cards:

High –end cards support 24-bit color .this 24-bit capability enables the display of more than 16.7 million pure colors.The RGB macro allows you to specify the exact colors you want.

No comments:

Post a Comment