Opening or loading a rather complex dll file

1 回表示 (過去 30 日間)
Mohammad Shojaei Arani
Mohammad Shojaei Arani 2022 年 9 月 3 日
回答済み: Vijay 2022 年 9 月 6 日
Hello,
I have downloaded a few matlab codes (which are about estimating the density and its higher order derivatives) whose
execution is based on C++ dll files in order to make it very fast. However, since I have no experience working on dll
stuff I got stucked and need your help.
I have attached the zip file. To be more clear and specific, I need to run the code example1.m. When I do so, it gives an error message due to an issue at line 50 (in this line the code apparently tries to load a dll file UnivariateDensityDerivative.dll which fails).
Thanks a lot!
Babak

回答 (1 件)

Vijay
Vijay 2022 年 9 月 6 日
In order to load a DLL file you need to use function loadlibrary.
Also, it is necessary to have a header file for the DLL you want to load.
Upon checking your source code I found that you did not have header file for UnivariateDensityDerivative.dll.

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by