I can't import simulink generated shared library to visual studio

Why do I get an errore when I try to add simulink generated shared library to visual studio? I used Shared Library Target (ert_shrlib.tlc) to generate a shared library directly. The error is: Please make sure that the file is accessible, and that it is a valid assembly or COM component.

 採用された回答

Titus Edelhofer
Titus Edelhofer 2014 年 4 月 9 日

0 投票

Hi,
this sounds like if your Visual Studio Project is a .NET project instead of a C/C++ project ...?
Titus

2 件のコメント

Jernej
Jernej 2014 年 4 月 10 日
Thank you for your answer. My application needs to be written in C#. Is it possible to use simulink generated dll in visual C# console application.
Titus Edelhofer
Titus Edelhofer 2014 年 4 月 10 日
Yes, it is. You will need to use the native interface to unmanaged code (google for C# and DllImport).
Titus

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by