C#, ActiveX Server

Create an Active X server using C#, using MATLAB as the client, hook into events and pass arrays ...
2.8K Downloads
Updated 12 Aug 2005

No License

Interfaces a C# generated dll to MATLAB using the COM interface. Currently the .NET platform is not supported by MATLAB as such to connect to C# requires the use of COM technology. The code makes an ActiveX server using C#, this server has a single event that functions in a similar way to the ddeexec function; this event passes a string to a wrapper for the eval function. Using this event an example user written function is called. Examples are provided on calling C# methods from MATLAB and passing vectors, arrays and scalers to and from C# and MATLAB. The code provides a solid basis from with users can build a more complicated interface to C# without writing C wrappers. MATLAB and C# source code is included.

Cite As

Alexander Cave (2026). C#, ActiveX Server (https://www.mathworks.com/matlabcentral/fileexchange/8274-c-activex-server), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0