User`s guide

Component Registration
Component Registration
When Excel Builder creates a compone nt, it automatically generates a binary
file called a type library. As a final step of the build, this file is bound with the
resulting DLL as a resource.
When programming with Excel components you m ight need details about
a component. You can use
componentinfo, which is a MATLAB function,
to query the system registry for details about any installed Excel Builder
component.
Obtaining Registry Information
When programming with COM components you might need details about
a component. You can use
componentinfo, which is a MATLAB function,
to query the system registry for details about any installed Excel Builder
component.
Querying the Register for Information About a Component
This example queries the regis try for a component named mycomponent and
a vers ion of 1.0. This co mpo nent has four methods:
mysum, randvectors,
getdates,andmyprimes, two propertie s: m and n,andoneevent:myevent.
The returned structure contains fields corresponding to the most important
information from the registry an d type library for the component.
Info = componentinfo('mycomponent', 1, 0)
Info =
Name: 'mycomponent'
TypeLib: 'mycomponent 1.0 Type Library'
LIBID: '{3A14AB34-44BE-11D5-B155-00D0B7BA7544}'
MajorRev: 1
MinorRev: 0
FileName: 'D:\Work\ mycomponent\distrib\mycomponent_1_0.dll'
Interfaces: [1x1 struct]
CoClasses: [1x1 struct]
Info.Interfaces
A-5