External Interfaces |
Registering Controls and Servers
Most controls and servers are registered by default. However, if you get a new .ocx
, .dll
, or other object file for the control or server, you must register the file manually.
Use the DOS regsvr32
command to register your object file (e.g., ocx
file), in the Windows registry. From the DOS prompt, use the cd
function to go to the directory where the ocx
file is located and use the syntax
For example, to register the mwsamp2.ocx
file used in many of the MATLAB documentation examples, type
If you encounter problems with this procedure, please consult a Windows manual or contact your local system administrator.
Verifying the Registration
Here are several ways to verify that a control or server is registered (using the MATLAB mwsamp
control as an example):
MwSamp
Control
. If you are able to insert the control without any problems, the control is successfully registered. Note that this method only works on controls.
regedit
at the DOS prompt. You can then search for your control or server object by selecting Find from the Edit menu. It will likely be in the following structure:
Control
object:
Supported Client/Server Configurations | MATLAB COM Client Support |
© 1994-2005 The MathWorks, Inc.