通过仅安装MCR从C#调用MATLAB dll [英] calling a MATLAB dll from C# by instaling only MCR

查看:411
本文介绍了通过仅安装MCR从C#调用MATLAB dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我想从C#调用MATLAB dll,仅安装MCR,而不是完全调用MATLAB,但是我的项目没有运行.请提前帮助我.谢谢.

Hello,I want to call a MATLAB dll from C#and only instal MCR ,not the MATLAB completly but my project doestn run.Please help me.thanks in advance.

推荐答案

假定要连接的DLL本身不依赖于另一个MATLAB dll,则应该能够将其添加到项目中,并为其编写一个interop包装器类(同样,假设您知道公开的API).

请记住,如果您要编写零售应用程序,则分发未经特别许可再分发的MATLAB DLL可能会给您带来法律麻烦.我的建议是要谨慎行事.
Assuming the DLL you want to interface with does not, itself, have a dependency on another MATLAB dll, you should be able to add it to your project, and write a interop wrapper class for it (again, assuming you know the exposed API).

Keep in mind that if you''re writing a retail application, distributing a MATLAB DLL that is not specifically licensed for redistribution could land you in legal trouble. My advice is to tread carefully.


这篇关于通过仅安装MCR从C#调用MATLAB dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆