User`s guide
A Producing a COM Object from MATLAB
Note The mwregsvr utility invokes a process that is similar to regsvr32.exe,
except that
mwregsvr does not require interaction with a user at the console.
The
regsvr32.exe process belongs to the Windows OS and is used to register
dynamic link libraries and ActiveX controls in the registry. This program is
important for the stable and secure running of your computer and should not
be terminated. You can use
regsvr32.exe as an alterna t ive to mwregsvr to
register your library.
Globally Unique Identifier (GUID)
Information i s stored in the registry as keys with one o r more associated
named values. The keys themselves have values of primarily two types:
readable strings and GUIDs. (GUID is an acronym for Globally Unique
Identifier, w hich is a 128-bit integer guaranteed always to be unique.)
Excel Builder automatically generates GUIDs for COM classes, interfaces,
and type libraries that are defined within a component at build time, and
codes these keys into the component’s self-registration code.
The interface to the system reg istry is directory based. COM-related
information is stored under a top-level key called
HKEY_CLASSES_ROOT.Under
HKEY_CLASSES_ROOT are several other keys under which Excel Builder writes
component information. See the following table for a list of the keys and
their definitions.
Key Definition
HKEY_CLASSES_ROOT\CLSID
Information about COM classes o n the system.
Each component creates a new key under
HKEY_CLASSES_ROOT\CLSID for each of its COM
classes.ThekeycreatedhasavalueoftheGUID
that has been assigned the class and contains
several subkeys with information about the class.
A-8