Storing and Printing Documents

Ivor Horton · 2010

This chapter focuses on serialization, and explains how to make objects of a class serializable. It also discusses the role of a CArchive object in serialization. It describes the implementation of serialization in own classes and Sketcher application. The chapter shows how printing works with Microsoft foundation classes (MFC). It also describes implementation of multipage printing in the Sketcher application, storing of a document on disk. The chapter investigates how you can output a document to a printer. The basic idea behind serialization is that any class that ’ s serializable must take care of storing and retrieving itself. To implement serialization in the Sketcher application, one must implement the Serialize() function in CSketcherDoc so that it deals with all of the data members of that class.

Read the paper · More papers on PaperTik