Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

DLL for a COM server

Asked by Damien on 3 Sep 2012

Hi,

I am trying to use a DLL file known to be a COM server. But I don't know how to use this type of file with Matlab. I have tried 'loadlibrary' function but I have only a dll file and not a h file. Could you help me and say me what function I have to use in order to load it. Thanks a lot.

Damien

0 Comments

Damien

Products

1 Answer

Answer by Kaustubha Govind on 4 Sep 2012
Edited by Kaustubha Govind on 16 Nov 2012

I think you need to register your DLL as a COM Server on your machine using regsvr32 and then use the ACTXSERVER command in MATLAB to start that COM Server. Please see COM Objects for more information.

2 Comments

John on 15 Nov 2012

Again, nice answer, but a broken link. Get with it, Mathworks Support!

Kaustubha Govind on 16 Nov 2012

John: Thanks for pointing that out, I've fixed the link. Also, just FYI, this forum is not maintained by MathWorks Support, but by the MATLAB Central community. :)

Kaustubha Govind

Contact us