Storing and Printing Documents
Ivor Horton
Abstract
Ivor Horton
Abstract
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.
A significance statement is not available in the OpenAlex record.
A contribution statement is not available in the OpenAlex record.
Method details are not available in the OpenAlex metadata.
Findings are not separately available in the OpenAlex metadata.
Limitations are not available in the OpenAlex metadata.
Application details are not available in the OpenAlex metadata.
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.
Key concepts: Serialization, Computer science, Class (philosophy), Object (grammar), Function (biology), Programming language, Operating system, Database