Code covered by the BSD License  

Highlights from
Calling functions from a user defined shared library

Be the first to rate this file! 22 Downloads (last 30 days) File Size: 10.4 KB File ID: #16026

Calling functions from a user defined shared library

by

 

21 Aug 2007 (Updated )

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

| Watch this File

File Information
Description

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

MATLAB release MATLAB 7.4 (R2007a)
Other requirements You need to have MS Visual Studio in order to compile the dll. Anyway, you can still call the dll without any compiler, ut you won't be able to change anything from the dll. Visual Studio Express should also work to compile the Dll
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
21 Aug 2007 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
diagnoseError(err);

Error in ==> CallingExternalDLL at 12
loadlibrary('Lib_Math','Lib_Math.h');

Am I missing any requirement ?

Contact us