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

2 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Titus Edelhofer
Titus Edelhofer el 9 de Abr. de 2014
Hi,
this sounds like if your Visual Studio Project is a .NET project instead of a C/C++ project ...?
Titus
  2 comentarios
Jernej
Jernej el 10 de Abr. de 2014
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 el 10 de Abr. de 2014
Yes, it is. You will need to use the native interface to unmanaged code (google for C# and DllImport).
Titus

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by