Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

To Load a .dll file into Matlab workspace

333 views
Skip to first unread message

Rakesh

unread,
Jul 22, 2009, 7:33:05 AM7/22/09
to
I am trying to load a .dll file using the syntax "loadlibrary('name.dll','name.h)" for which i am getting a error mentioned below. I have all Header files and .lib and .dll files in current working directory.
-------
loaddefinedlibrary(library,fcns,classname,structs,enums)
??? Error using ==> loaddefinedlibrary
The specified module could not be found.
--------

us

unread,
Jul 22, 2009, 7:42:01 AM7/22/09
to
"Rakesh " <rake...@kpitcummins.com> wrote in message <h46tdg$3ud$1...@fred.mathworks.com>...

just a minute thought
- you write

loadlibrary('name.dll','name.h);

- in the actual command, do you use

loadlibrary('name.dll','name.h'); % <- note the LAST <'>

us

Rakesh

unread,
Jul 22, 2009, 7:53:04 AM7/22/09
to
"us " <u...@neurol.unizh.ch> wrote in message <h46tu9$7at$1...@fred.mathworks.com>...

Thanks for the reply,
actually its posting mistake, i have given right syntax even though its showing the same error.

Philip Borghesani

unread,
Jul 22, 2009, 12:02:30 PM7/22/09
to
I suspect there are other dlls that your dll 'name.dll' is dependent on. To figure out what dlls are missing the program
Dependency Walker is your friend. Older versions of this program are shipped with some versions of Visual Studio or it can be
downloaded for free from http://www.dependencywalker.com/.

Phil


"Rakesh " <rake...@kpitcummins.com> wrote in message news:h46tdg$3ud$1...@fred.mathworks.com...

0 new messages