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?

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:
ERROR: ??? The specified module could not be found.

 Accepted Answer

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 the instruction in this article: How do I determine which libraries my MEX-file or stand-alone application requires?. These same instructions apply to DLLs.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!