User`s guide
A Producing a COM Object from MATLAB
interface definition in the IDL file. The interface GUID file contains the
definitions of the GUIDs from all interfaces in the IDL file. Th e compone nt
type library file contains a binary representation of all types and objects
exposed by the component.
C++ Compilation
The third step compiles all C/C ++ so urce files generated in steps 1 and
2 into object code. One additional file containing a set of C++ template
classes (
mclcomclass.h)isincludedatthispoint.Thisfilecontainstemplate
implementations of all necessary COM base classes, as well as erro r handlin g
and registration code.
Linking and Resource Binding
The fourth step produces the finished DLL for the component. This step
invokes the linker on the object files generated in step 3 and the necessary
MATLAB libraries to produce a DLL component (
mycomponent_1_0.dll).
The resource compiler is then invo ked on the DLL, along with the resource
script generated in step 1 , to bind the type library file generated in step 2
into the completed DLL.
Component Registration
The final step registers the DLL on the system, as described in “Component
Registration” on page A-5.
A-4