accessing an event in matlab .NET dll from c# platform

Hello, I would like to listen to event I've compiled to .NET dll (Matlab 2015a) from the .NET platform in C#. The Matlab compiler puts all the functions and classes in my code under a defualtive 'Class1' class. Is it possible to add an event to this Class1 in order to listen to it from outside the dll? since it is not possible to access the events from the classes I have compiled... Thanks!

3 Comments

I'm a bit confused, you want to listen to the event in matlab or in a C# program outside matlab? what I do know at least is that it's possible to tell matlab to listen to events of a .NET DLL compiled using C# (MS Visual Studio as a compiler), and I did that before so I'm sure of it.
I would like to listen to the matlab event in a C# program outside matlab. The event is in matlab code compiled to dll. The dll is read in C# program, and the event callback is in the C# program.
I haven't worked with dlls generated from matlab before, but go to matlab command prompt and type mex.getCompilerConfigurations if it's visual studio then I guess you can add event listeners in .NET, just a guess though, never tried this.

Sign in to comment.

Answers (0)

Asked:

on 5 Aug 2015

Commented:

on 5 Aug 2015

Community Treasure Hunt

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

Start Hunting!