File Exchange

image thumbnail

Calling functions from a user defined shared library

version (10.4 KB) by

Demonstrates how to use the loadlibrary function,and use of pointers



View License

This package is composed in fact of 2 things :
- First thing is MATLAB M file, with a dll and a header file. This script shows how to call some functions from the dll included
- The zip file included is the complete Visual studio project, in Visual Studio .NET format, in order to build the Dll called by the MATLAB script

Comments and Ratings (1)

Marcelo Perlin

I'm running it, but, even though I'm in the same working dir, I get the error:

??? There was an error loading the library "C:\Program Files\MATLAB\R2006a\work\Calling_external\Calling External dll\Lib_Math.dll"
Error using ==> loaddefinedlibrary
The specified module could not be found.

Error in ==> loadlibrary at 273

Error in ==> CallingExternalDLL at 12

Am I missing any requirement ?


Updated license

MATLAB Release
MATLAB 7.4 (R2007a)

MATLAB Online Live Editor Challenge

Win cash prizes and have your live script featured on our website

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Calling External dll/