How to use actxserver create serveral independent COM Object?

3 visualizaciones (últimos 30 días)
圣浪
圣浪 el 6 de Dic. de 2022
Respondida: Mario Malic el 6 de Dic. de 2022
oMaxwell = actxserver('Ansoft.ElectronicsDesktop')
eg. I want to run this code twice to create two independent application desktop, so that I can open two different Projects.

Respuestas (1)

Mario Malic
Mario Malic el 6 de Dic. de 2022
Try to save both of the application handles.
oMaxwell1 = actxserver('Ansoft.ElectronicsDesktop');
oMaxwell2 = actxserver('Ansoft.ElectronicsDesktop');
See if you get both instances visible:
oMaxwell1.Visible = true;
oMaxwell2.Visible = true;

Categorías

Más información sobre Use COM Objects in MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by