Why do I receive the error message "??? The specified module could not be found." when I load a generic DLL in MATLAB using the LOADLIBRARY utility?

22 views (last 30 days)
Why do I receive the error message "??? The specified module could not be found." when I load a generic DLL in MATLAB using the LOADLIBRARY utility?
I am using the LOADLIBRARY utility in MATLAB to access a generic DLL. However, I get the following error in MATLAB after I use the LOADLIBRARY function:
??? The specified module could not be found.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This error occurs if you do not have all the necessary DLLs along with the one that you are using with the LOADLIBRARY function. This error is thrown if any of the dependent DLLs is missing. You can find out the necessary DLLs by using Dependency Walker. The Dependency Walker can be downloaded from the following web site:
For information on how to do the above on a UNIX platform, refer to the related solution below.

More Answers (0)

Categories

Find more on Install Products in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!