sample Matlab COM object for C# .NET Framework application

Hello everybody,
I am trying to build a Matlab COM object (encapsulated in a DLL), which I want to use in a C# .NET Framework application. Can somebody please point me to some detailed documentation, or working sample? I use Visual Studio 2019.
Thank you

답변 (1개)

Christopher McCausland
Christopher McCausland 2021년 11월 2일

0 개 추천

Hi,
The MATLAB documentation has lots of examples and documentation to get you going.
Here's a link to an example. And a second link to the top level MATLAB COM documetation which has many sublinks. That should be enough to get you going!
Let us know how it goes,
Christopher

댓글 수: 2

Sorry, Christopher
The link you have supplied does not take me to an example of how I can generate a COM object which I can use in a C# project (Visual Studio).
The documentation describes building COM objects for the VB or C++ environments. The C# project I am using cannot load those objects.
Do you have any additional information I can use? My project is C#, Visual Studio 2019, WinForms.
The .NET assembly solution works - but it is excruciatingly slow. To instantiate your sample magic square class takes more than 2 seconds !!
Is there anything you can recommend?
Cheers
Hi,
If you are looking for a specific C# example, here is one. This is locatable from the second link in the first answer which has ALL COM documentation.
Hope this helps,
Christopher

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

제품

릴리스

R2021b

질문:

2021년 11월 2일

댓글:

2021년 11월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by