User`s guide

5 Controlling Code Generation
5-32
How mbuild Processes the File Types
The mbuild option, -regsvr, uses the mwregsvr32 program to register the
resulting shared library at the end of compilation. The Compiler uses this
option whenever it produces a COM wrapper file.
<filename>.idl. You can specify IDL source files on the mbuild command line.
These files are compiled using the MIDL Compiler. The compiler adds any
generated
.idl files to the mbuild command line.
<filename>.def. You can specify DEF files on the mbuild command line to
indicate the symbols exported from a given shared library. It is an error to have
more than one
.def file specified on the command line.
<filename>.rc. You can specify an RC file on the MATLAB Compiler command
line and it is added into the DLL as required. It is an error to have more than
one
.rc file specified on the command line.
COM Signature
When using the MATLAB Compiler and its COM wrapper option with an
M-file, the Compiler produces and registers a COM-compatible DLL.
The Compiler produces the necessary function calls in accordance with these
signatures.
M-Function Signature.
[Y1, Y2, , Varargout] = f(X1, X2, , Varargin)