MATLAB Excel Builder    

Producing a COM Class

Producing a COM class requires the generation of a class definition file in Interface Description Language (IDL) as well as the associated C++ class definition/implementation files. (See the Microsoft COM documentation for a complete discussion of IDL and C++ coding rules for building COM objects.) The builder automatically produces the necessary IDL and C/C++ code to build each COM class in the component. This process is generally transparent to the user.

As a final step, the builder produces a Visual Basic function wrapper for each method, used to implement an Excel formula function. Formula functions are useful when calling a method that returns a single scalar value with one or more inputs. Use a general Visual Basic subroutine when calling a method that returns array data or multiple outputs.


  Calling Conventions IDL Mapping