accessing an event in matlab .NET dll from c# platform
Show older comments
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
Al Dente
on 5 Aug 2015
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.
tel aviv university
on 5 Aug 2015
Al Dente
on 5 Aug 2015
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.
Answers (0)
Categories
Find more on .NET Methods in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!