How can I call a DLL created by Matlab in Visual Studio 2017?

5 vues (au cours des 30 derniers jours)
Elisa Michelini
Elisa Michelini le 17 Nov 2017
Hallo, I created a DLL by using the app Library Application: FunctionDLL.dll. Library application created a standalone application that has this output files: folders with some header files, .c files, .lib files and an executable that has to be run if you don't have matlab installed in your pc. Now I want to test the DLL by using a project written in Visual Studio 2017 in C code (I use C code because I need to transfer it in another program that reads only C code). I tried to write it following the steps described by the documentation and the examples provided to us (matrixdriver.c and triangle.c, https://de.mathworks.com/help/releases/R2010b/toolbox/compiler/f2-972343.html , https://de.mathworks.com/help/releases/R2010b/toolbox/compiler/f2-972343.html) but however I have some errors. Visual Studio is not able to open the header file of my DLL ( FunctionDLL.h) also if I add the path in which it could be find (Properties-->General Properties-->VC++ Directory--> Additional Inclusive Directory) and also the required library, FunctionDLL.lib (same path but in Libraries Directory). I can't find the reason why it behaves like that! I have to say that I am a beginner so maybe I set some setting wrong. And It is also difficult for me to deal with all "mclInitialize" "return mclRunMain((mclMainFcnType)run_main, 0, NULL);" So, Can anyone tell me step by step how to reach my goal please? Thank you very much.

Réponses (0)

Catégories

En savoir plus sur MATLAB Compiler dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by