External Interfaces Previous page   Next Page

Instantiating a DLL Component

To create a server for a component implemented as a dynamic link library (DLL), use the actxserver function. MATLAB creates an instance of the component in the same process that contains the client application.

The syntax for actxserver, when used with a DLL component, is

where ProgID is the programmatic identifier for the component.

actxserver returns a handle to the primary interface to the 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.

Unlike ActiveX controls, any user interface that is displayed by the server appears in a separate window.


Previous page  Creating an ActiveX Control Instantiating an EXE Component Next page

© 1994-2005 The MathWorks, Inc.