I have a piece of c++ code compiled into a .dll file. I need to
access this code from Matlab (v.7). I don't have a header file (.h)
accompanying the dll.
The dll loader ('loadlibrary') supported in Matlab v7.0 requires a
header file as well. Is there any way to by-pass that and use the dll
without having a header file?
thanks!
iason
http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/ch2_sha2.html#43202
However, if you do in fact have a C interface, check the documentation
on LOADLIBRARY carefully. Pay particular attention to the information
about a prototype M-file. It may be that you can write your own
prototype M-file based upon a few examples which you could generate from
some sample libraries and headers. DependencyWalker
(www.dependencywalker.com) may help you find which methods are exported
from your library as well.
Finally, you don't need the header that was used when the library was
created, you can simply write one which matches.
todd