User`s manual

vii
7
ActiveX and DDE Support
Introducing MATLAB ActiveX Integration . . . . . . . . . . . . . . 7-3
ActiveX Concepts and Terminology . . . . . . . . . . . . . . . . . . . . . . 7-3
MATLAB ActiveX Support Overview . . . . . . . . . . . . . . . . . . . . . 7-4
MATLAB ActiveX Client Support . . . . . . . . . . . . . . . . . . . . . . . 7-6
Using ActiveX Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6
Writing Event Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8
Additional ActiveX Client Information . . . . . . . . . . . . . . . . . 7-10
Releasing Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10
Using ActiveX Collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10
Converting Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-11
Using MATLAB As a DCOM Server Client . . . . . . . . . . . . . . . 7-12
MATLAB ActiveX Support Limitations . . . . . . . . . . . . . . . . . . 7-13
MATLAB Sample Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-13
Using MATLAB As an Automation Client . . . . . . . . . . . . . . . . 7-13
MATLAB ActiveX Automation Server Support . . . . . . . . . . 7-16
MATLAB ActiveX Automation Methods . . . . . . . . . . . . . . . . . . 7-17
MATLAB ActiveX Automation Properties . . . . . . . . . . . . . . . . 7-20
Additional ActiveX Server Information . . . . . . . . . . . . . . . . 7-21
Launching the MATLAB ActiveX Server . . . . . . . . . . . . . . . . . 7-21
Specifying a Shared or Dedicated Server . . . . . . . . . . . . . . . . . 7-21
Using MATLAB As a DCOM Server . . . . . . . . . . . . . . . . . . . . . 7-22
Dynamic Data Exchange (DDE) . . . . . . . . . . . . . . . . . . . . . . . 7-23
DDE Concepts and Terminology . . . . . . . . . . . . . . . . . . . . . . . . 7-23
Accessing MATLAB As a Server . . . . . . . . . . . . . . . . . . . . . . . . 7-25
The DDE Name Hierarchy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-26
Example: Using Visual Basic and the MATLAB DDE Server 7-29
Using MATLAB As a Client . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-31
DDE Advisory Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-32