C Dll does not find all header paths
Hello all,
I am currently trying to call functions from a dll from within MATLAB. Here are two things that I tried and have questions about:
1.:
calllib("C:\Windows\System32\mxsvcb.dll",'mxCardsReset',0)
This is the way I am used to calling Dlls (from LabVIEW): reference the dll, select a function and pass the parameters. However, when I call this, I get an error back: Error using calllib Library was not found
The file is definitely at that location. Is this sort of call possible?
2.: When I go to the documentation folder and call
loadlibrary('C:\Windows\System32\mxsvcb.dll','\apimx\apimx.h')
I get a different error, that tells me the file that is being referenced by an include does not exist "common/nowarn.h". Now, that file is in a parallel folder and not in a subfolder to the "apimx.h", so the path would be "../../common/nowarn.h" from where apimx is.
Because of this, I copied the folder into the "apimx" folder and got the same message for the next include in line. Since the header files reference each other, I can't rearrange everything, because it would take a long time. Is there a way to make MATLAB understand the structure better?
Edit: Sorry, somehow the post got submitted while adding tags.
3 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!