How do I create a Shared Library using the MATLAB Compiler that can be accessed through Visual Basic 6 as a DLL?

I would like to create a Visual Basic DLL from the MATLAB Compiler that takes two matrices as an argument and returns two matrices.

回答 (1 件)

Sanchali Purandare
Sanchali Purandare 2011 年 1 月 16 日
The ability to deploy MATLAB code to be used by Visual Basic is available with MATLAB Builder NE. With Builder NE a COM DLL can be created which can be easily interfaced with Visual Basic. The following web site has more information:
http://www.mathworks.com/products/netbuilder/
The following example project shows another way to interface with a standard DLL. It involves a Visual C++ wrapper to do the data conversion. The example demonstrates how to use two matrix input arguments and two output matrices. The example includes the necessary MATLAB files, a Visual C++ 6 wrapper that needs to be used in order to do the data type conversion between MATLAB and Visual Basic, and a VB example that demonstrates how to call the function in the wrapper DLL.

3 件のコメント

You mention an example project, how do I access/download it. I am new to this forum so may be I am not looking in the right place.
Ksutubha: Thanks for the reply. Actually I saw these examples, but I was interested in the VB6 example and Visual C++ 6 wrapper dll that she mentioned will allow data type conversion between Matlab and Visual Basic 6.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMATLAB Compiler についてさらに検索

質問済み:

2011 年 1 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by