Next: Parameters
Up: RegisterObject
Previous: Use
Contents
Next: Parameters Up: RegisterObject Previous: Use Contents Fabio Mascarenhas de Queiroz 2005-01-07
Description
This method creates the necessary registry entries for a COM object, using the information in registration_info table. If the component is successfully registered, the method returns a non-nil value.The registration_info table must contain the following fields6.1:
- VersionIndependentProgID
- This field must contain a string describing the programmatic identifier for the component, e.g. ``MyCompany.MyApplication''.
- ProgID
- The same as VersionIndependentProgID but with a version number, e.g. ``MyCompany.MyApplication.2''.
- TypeLib
- The file name of the type library describing the
component. This file name should contain a path, if the type library
isn't in the same folder of the executable. Samples:
mytypelib.tlb
,c:\app\test.tlb
,test.exe\1
(this last one can be used when the type library is bound to the executable as a resource). - CoClass
- The name of the component class. There must be a coclass entry in the type library with the same name or the registration will fail.
- ComponentName
- This is the human-readable name of the component.
- Arguments
- This field specifies what arguments will be supplied to the component executable when started via COM. Normally it should contain ``/Automation''.
- ScriptFile
- This field specifies the full path of the script file that implements the component. Only used to register in-process servers.
This method is not a generic ``registering tool'' for COM components, as it assumes the component to be registered is implemented by the running executable during registration.
Next: Parameters Up: RegisterObject Previous: Use Contents Fabio Mascarenhas de Queiroz 2005-01-07