Carapace

Custom COM Servers

When a Carapace COM server starts, it looks in the registry to see which type libraries it has to load. The classes contained within these type libraries are then made available for the COM client to use.

Carapace provides two generic COM servers:

caracom.dll an in-process (inproc) server which gets bound into the address space of the calling process
caracom.exe a local server which runs as a distinct process from the calling process - this can also be invoked on a different machine using DCOM

The function makeComServer creates custom servers from these generic ones. The custom servers contain a different name to the generic and so can load a different list of type libraries.

makeComServer

The name of the new server is supplied. This name must have the extension .dll or .exe to indicate whether a new inproc- or local-server is to be made. The new server is put into the standard Carapace binaries directory.

Script: cservgen.cpl

Arguments:

argumenttypedescription
newName String name for the new inproc- or local-server

Result: the empty List () is returned.


Contents Index Current topic: COM Related Links: COM helpers, objects