Next Previous Up Top Contents Index

6 The OLE-Server Library

6.3 Basics of writing OLE compound document servers

To write an OLE compound document server application, use the OLE-Server library and module. Note that to implement the user interface for your server, you will also have to use Functional Developer's Win32 API libraries; see the manual C FFI and Win32 Reference for details.

Your compound document server can be a local server (a server that is built as a .EXE file and therefore runs in its own process) or an in-process server (a server that is built as a .DLL file and that runs in its container's process). There is no direct support for remote servers.

Compound document servers are required to support several standard COM interfaces. Rather than requiring you to write support for each interface separately, Functional Developer provides "framework" classes that encapsulate the necessary COM interfaces. To implement a server you define a subclass of the appropriate framework class, and then define various required and optional Dylan methods on it.

For local servers, you must define a subclass of <ole-server-framework>, page 271; define a subclass of <ole-in-process-server>, page 272, for in-process servers. The required Dylan methods are described in Section 6.7.2 on page 273 while the optional ones are described in Section 6.7.5 on page 287.


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

Next Previous Up Top Contents Index