External Interfaces |
Instantiating an EXE Component
You also use the actxserver
function to create a server for a component implemented as an executable (EXE). In this case, however, MATLAB instantiates the component in an out-of-process server.
where ProgID
is the programmatic identifier for the component, and sysname
is an optional argument used in configuring a distributed COM (DCOM) system (see the reference page for actxserver
).
actxserver
returns a handle to the primary interface to the COM object. Use this handle to reference the object in other COM function calls. You can also use the handle to obtain additional interfaces to the object. For more information on using interfaces, see Getting Interfaces to the Object.
Any user interface that is displayed by the server appears in a separate window.
This example creates a COM server application running Excel. The returned handle is assigned to h
:
Instantiating a DLL Component | Getting Interfaces to the Object |
© 1994-2005 The MathWorks, Inc.