Next Previous Up Top Contents Index

6.7.3 More required methods (persistent storage)

OLE-part-Load-From-Storage

G.f. method

Summary

Initializes the size of your server application's document window to given dimensions, and loads the application's persistently stored non-screen-image data.

Signature

OLE-part-Load-From-Storage obj width height => ()

Arguments

obj
An instance of your subclass of <ole-server-framework> or <ole-in-process-server>.

width
An instance of <integer>.

height
An instance of <integer>.

Values

None.

Library

OLE-Server

Module

OLE-Server

Description

Initializes the size of your server application's document window to the saved width and height (in integer pixel units), and loads the application's persistent data from storage by reading from your stream objects (which were created by OLE-part-Open-Streams).

The reading can be done either by using helper functions such as istream-read-integer and istream-read-int16, or by using the low-level API function IStream/Read.

If your server application has no data other than its window image to store persistently, your method can do nothing. But you must define one even so, because there is no default method. We have not supplied default methods because most applications will need persistent storage, and to allow these operations to be silently ignored could lead to difficulties that would be difficult to trace.


OLE, COM, ActiveX and DBMS Reference - 31 MAR 2000

Next Previous Up Top Contents Index