NextPrevUpTopContentsIndex

make-factory-entry

Function
Summary

Make a object which can be used to register a class factory.

Package

com

Signature

make-factory-entry &key clsid implementation-name
constructor-function constructor-extra-args
friendly-name
prog-id
version-independent-prog-id

Arguments

clsid

The CLSID of the coclass.

implementation-name

A Lisp symbol naming the implementation class.

constructor-function

A function to construct the object. If nil , the default constructor is used which makes an instance of the implementation-name and queries it for a i-unknown interface pointer. The default constructor also handles aggregation .

constructor-extra-args

Extra arguments to pass to the constructor-function .

friendly-name

The name of the coclass for use by application builders.

prog-id

The ProgID of the coclass.

version-independent-prog-id

The VersionIndependentProgID of the coclass.

Description

Makes an object to contain all the information for class factory registration in the COM runtime. This object should be passed to register-class-factory-entry to perform the registration. This done automatically if you use define-automation-component described in the Using Automation.

Examples
(make-factory-entry
 :clsid (make-guid-from-string
         "7D9EB762-E4E5-11D5-BF02-000347024BE1")
 :implementation-name 'doc-impl
 :prog-id "Wordifier.Document.1"
 :version-independent-prog-id "Wordifier.Document"
 :friendly-name "Wordifier Document")
See also

register-class-factory-entry


LispWorks COM/Automation User Guide and Reference Manual - 21 Feb 2008

NextPrevUpTopContentsIndex