P.S.: I should also mention, that I have added all the directories to the search path using
addpath
But still, the files are not found.
Best Answer
You cannot usecalllib in matlab unless you have first loaded the library withloadlibrary.
If there is a bunch of include file that are not found because they're in a different folder then you need to tellloadlibrary where to find them, using theincludepath option (Not that this is orthogonal toaddpath which is for m files). From your description, it looks likeincludepath should point to whatever../.. is, so
Loading a Windows dll via windows.h is not a simple task and is quite slow. The best solution for a few functions is to create you own header for the functions you wish to call and use that. For FindWindow this could just contain:
Note that the usable function from matlab is FindWindowA.
The reason you found no functions was that most of the functions in user32 are in the header "WinUser.h" which must be added with theaddheader option to loadlibrary. I determined this by searching for FindWindow in all the windows headers. I was able to load many functions from user32.dll using this process:
Best Answer