For stand alone exe, how can I include some external dll files and call them.

1 次查看(过去 30 天)
I have a GUI that works greatly on matlab 2013b. The GUI does some calculations first and then plots results for users to review.
In order to plot those results, I have to call some external dll and lib files (including dll, lib and header files). In my original matlab, i use loadlibrary and calllib to access those external files.
After using deploytool to create an EXE, the calculation part has no problems. I can get the results I want and save them in the folder created.
However, I don't know how I can "package" those dll and lib files into the EXE so that I can use them as the way I use in Matlab.
I tried to use mcc -a ...dll -a....h, -a....lib, but it doesn't work. I also tried to add those files into "Files installed with your application", it doesn't work either.
Anyone can give me some hints here? I really appreciate it!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by