フィルターのクリア

Accessing a dll from outside of Matlab, using visual studio and c++

3 ビュー (過去 30 日間)
hde
hde 2012 年 2 月 16 日
I am trying to write an application that will allow me to access a dll from outside of Matlab.
Previously in Matlab I have tried:
>>loadlibrary('Wintab32', 'WINTAB'), but have had no luck accessing the dll file (may have been due to issues with 16bit and 32 bits in files).
A helpful suggestion was to use the DLL outside of Matlab by writing an application in c++ that will call on the DLL.
I am trying to use Microsoft Visual Studio (as a beginner) and learn C++, but it's hard to know where to begin. Can anyone give any helpful suggestions to how I can go about creating the application, or suggest a basic outline of an algorithm that can be implemented to do the above?

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 2 月 16 日
What you're asking is not really a MATLAB/Simulink-related question (although I understand that you need to do this to be able to load your "wrapper" DLL in MATLAB), so this may not be the right forum to ask this question. At any rate, I did a web search and found this: http://www.codeguru.com/cpp/cpp/cpp_mfc/tutorials/article.php/c9855
In general, you will need to write C++ code that uses the functions LoadLibrary, GetProcAddress and FreeLibrary.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeC Shared Library Integration についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by