WRITE A PROGRAM IN VC++ TO READ KEYSTROKES FROM THE KEYBOARD HOW TO 1.

SETTING UP STORAGE FOR OUR KEYBOARD DATA OPEN DOCUMENT CLASS INTIALIZE THE STRING WRITE CODE SHOWN IN THE SNAPSHOT 2. INITIALIZE EMPTY STRING IN CONSTRUCTOR OF DOCUMENT CLASS WRITE CODE SHOWN IN SNAPSHOT 3. READING KEYSTROKE ADD WM_CHAR MESSAGE HOW::--- VIEW->CLASS WIZARD->SET CLASS NAME TO VIEW->FIND OBJECT ID AS WM_CHARDOUBLE CLICK ON THAT (U WILL SEE IT WILL APPEAR IN FRONT OF ON_CHAR CLICK OK 4. RECORDING CHAR IN OUR DOCUMENT FIND ON_CHAR( ) METHOD IN VIEW CLASS(LEFT SIDE OF YOUR CODE WINDOW) WRITE THE CODE SHOWN IN SHAPSHOT IN ON_CHAR METHOD BY DOUBLE CLICKING IT 5.OPEN ON_DRAW() METHOD OF VIEW CLASS AND WRITE THE CODE SHOWN IN SNAPSHOT

PROGRAM NO WRITE A PROGRAM IN VC++ TO READ KEYSTROKES FROM THE KEYBOARD STEP 1 SETTING UP STORAGE FOR OUR KEYBOARD DATA

2.INITIALIZING EMPTY STRING IN CONSTRUCTOR OF DOC CLASS

3. READING KEYSTROKE ADD WM_CHAR MESSAGE FROM CLASS WIZARD

4. RECORDING CHAR IN OUR DOCUMENT CODING IN ON_CHAR OF VIEW CLASS

5. IN ON_DRAW( ) METHOD OF VIEW CLASS AND WRITE THE CODE

OUTPUT

Sign up to vote on this title
UsefulNot useful