Shared Library (dll) called by another Shared Library (dll)
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all,
I'm dealing with a two-level-driver of some hardware which I'd like to control from MatLab. There are two dll files involved: Level1.dll seems to provide an API towards MatLab, Level2.dll seems to be linked dynaimcally ino Level1.dll.
I am capable of getting the information/ perform actions which require Level1.dll only. However, Level2.dll does not seem to be linked to...
Can MatLab deal with this? Where is my problem?
Thanks for your reply, Benjamin
0 件のコメント
採用された回答
Kaustubha Govind
2012 年 2 月 8 日
Do you mean that you are using LOADLIBRARY and are seeing errors loading Level1.dll? Or do you mean that MATLAB loads Level1.dll, but you are unable to call into methods that require Level2.dll? If yes, what errors do you see.
Place Level2.dll also in the same directory as Level1.dll - see if you can run LOADLIBRARY from the directory containing both DLLs. Does this fix the issue?
2 件のコメント
Kaustubha Govind
2012 年 2 月 14 日
Did you try adding the path containing Level2.dll to the system PATH variable (you will need to restart MATLAB after doing this).
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!