How to perform Objective ---In this we declare the string in document class then we initialize the string in the constructor

of same class The we will retrieve it from the view class (we will write the code in OnDraw() method of view class Open vc++ Open a new project You will see the classes Double Click on the document class and write the code shown in the snap shot1

PROGRAM NO Write a program to show the relation between Document class and view class 1.Open document class and write the code as shown

2.Write the following code in the constructor of document class as shown

3.Click on the view class find OnDraw() method write the following code in OnDraw()


Sign up to vote on this title
UsefulNot useful