简体   繁体   中英

control a wpf from matlab by using a c# dll

i would like to know weather it is possible to control some wpf application written in c# by using ac# dll out of matlab. what i need is the possibility to start the MainWindow and i have to be able to get some values into my controller.

What i found so far was things working from c# that use matlab, but the other way round seems not to be that much populatet, as i found nothing i could really use. I allready tried to import a .net Library, but i dont seem to be able to open a external class from my dll. So if you could help me on this it would be great.

Regards, justSomeone

Ok, i did just find out, that i can also import my .exe file into Matlab instead of only dlls . I am using the function NET.addAssebly('Path.exe') to do this. Path.exe is just a symbol that it is directed to the place of the .exe file.

I achieved to be able to use my methods as i wanted i do have my instance of the class. So i am happy now. :D But if you have other solutions which are more handy, dont hesitate to post them. There might still be interesting things to discover :)

Regards, justSomeone

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM