User`s guide
Obtaining Registry Information
C-5
Obtaining Registry Information
MATLAB Excel Builder includes the MATLAB function componentinfo to
query the system registry for any installed Excel Builder components. The
function can be executed inside MATLAB with the component name, major
version number, and minor version number as arguments. It returns an array
of structures with the requested information. Calling
componentinfo with no
arguments returns all Excel Builder components installed on the machine.
The next example queries the registry for a component named
mycomponent
and a version of 1.0. This component has four methods:
mysum, randvectors,
getdates, and myprimes, two properties: m and n, and one event: myevent.
Note Although properties and events may appear in componentinfo output
fields, Excel Builder components currently do not support them.
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
ans =
Name: 'Imyclass'
IID: '{3A14AB36-44BE-11D5-B155-00D0B7BA7544}'