7.3 Actions that Invoke Server Callbacks Functions

Using the appropriate VTBL—either for the object, the document, or the server application—OLESVR.DLL calls functions in your server application. To provide a better understanding of the relationship between the callbacks and OLESVR.DLL actions, the following sections list the callbacks made in response to several specific situations that involve the server application.

Each situation is described and names the OLECLI.DLL function(s) called by the client application in the order that the callbacks are made. The resultant callbacks are identified by the level of operation: server, document, or object.

In the following example, the callbacks are made in a specific sequence. The server callback (Edit) is made first, then the document callback (Get) and finally the object callbacks (SetData, the EnumFormats calls, and DoVerb) are made.

Note In some situations, (for example, when OleUpdate is called to update an embedded object with the server application not running), the callback sequence can go from server to document to object and then back to document and finally server.