Can I create an intrinsic ActiveX Control in MATLAB using ACTXCONTROL?

2 views (last 30 days)
Can I create an intrinsic ActiveX Control in MATLAB using ACTXCONTROL?
For example, I want to create a drivelist control in MATLAB via ACTXCONTROL.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 30 Jul 2013
Unless the vendor of the ActiveX control provides you with the program id for that control, you cannot use ACTXCONTROL to load that control from within MATLAB. The program id is a string, provided by the vendor of the control, which uniquely identifies the controls in a system.
With the case of the Visual Basic intrinsic controls, since the Program Id is not published, you cannot directly load it into MATLAB. A workaround is to create a wrapper ActiveX control with the control in question as the intrinsic control. The zip file in the Resolution Documents/Files below contains an example of this.
To run this example:
1. Register mwDriveListBox.ocx by either running regsvr32.exe msDriveListBox.ocx at the command prompt or compiling the supplied Visal Basic project.
2. Run the test.m script.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!