Next Previous Up Top Contents Index

4.12 The OLE-AUTOMATION module

make-object-factory

Function

Summary

Creates, registers, and returns a COM class factory for a COM object.

Signature

make-object-factory typeinfo #rest other-args => factory 

Arguments

typeinfo
An instance of <coclass-type-info>.

args
Initialization arguments to pass to make on <class-factory>.

Values

factory
An instance of <class-factory>.

Description

Creates, registers, and returns a COM class factory for the COM object described by the given coclass type information, typeinfo. Automation servers should use this function to allow repeated instantiations of the COM objects they support.

The additional arguments are used as initialization keywords for either the instance of <class-factory> or the COM object implementation class.

You must call revoke-registration on the returned factory object before your program terminates.

See Section 4.3.4 on page 174 for more information about the role of class factories in OLE Automation.


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

Next Previous Up Top Contents Index