MATLAB Excel Builder    

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.

The returned structure contains fields corresponding to the most important information from the registry and type library for the component. These fields are defined in Table C-2.

Table C-2: Registry Information Returned by componentinfo 
Field
Description
Name
Component name
TypeLib
Component type library
LIBID
Component type library GUID
MajorRev
Major version number
MinorRev
Minor version number
FileName
Type library filename and path. Since all MATLAB Excel Builder components have the type library bound into the DLL, this filename is the same as the DLL name and path.
Interfaces
An array of structures defining all interface definitions in the type library. Each structure contains two fields:
  • Name - Interface name
  • IID - Interface GUID
CoClasses
An array of structures defining all COM classes in the component. Each structure contains these fields:
  • Name - Class name
  • CLSID - GUID of the class
  • ProgID - Version dependent program ID
  • VerIndProgID - Version independent program ID
  • InprocServer32 - Full name and path to component DLL
  • Methods - A structure containing function prototypes of all class methods defined for this interface. This structure contains four fields:
    • IDL - An array of Interface Description Language function prototypes
    • M - An array of MATLAB function prototypes
    • C - An array of C-language function prototypes
    • VB - An array of Visual Basic function prototypes
  • Properties - A cell array containing the names of all class properties.
  • Events - A structure containing function prototypes of all events defined for this class. This structure contains four fields:
    • IDL - An array of IDL (Interface Description Language) function prototypes.
    • M - An array of MATLAB function prototypes.
    • C - An array of C-Language function prototypes.
    • VB - An array of Visual Basic function prototypes


  Versioning Utility Library