Next Previous Up Top Contents Index

6 The OLE-Server Library

6.6 Implementing in-process servers

If you want to build your server application as an in-process server -- a server that runs within the client application's process -- there are a few differences from what you would do for a local server, and a few additional considerations.

The <ole-in-process-server> class is itself a subclass of <ole-server-framework>, so in-process servers inherit all methods documented for <ole-server-framework>.
Since your server application is a dynamic link library instead of a complete program, there will be no main program. The event loop will be provided by the container application.

Overall, an in-process server application will look something like this:

define constant $my-class-ID = make-GUID(...);

define COM-interface <my-object-class> (<ole-in-process-server>) ... end;

... // methods on <my-object-class>

initialize-ole-server(<my-object-class>, $my-class-ID, "my.prog.id", "title of my application");


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

Next Previous Up Top Contents Index