Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to execute a DLL created using the Library Compiler in visual basic?

1 回表示 (過去 30 日間)
Jon Millan
Jon Millan 2020 年 11 月 26 日
閉鎖済み: Jon Millan 2020 年 11 月 30 日
I have created a .dll with a function defined in Matlab which has an structure array of different type of data (numbers, text, paths ) as input argument using the Library Compiler. The function is defined as "function Calc_main(Calc_Config)" where "Calc_Config" is the structure array. This function doesnt have any output parameter, it exports the results to a Excel file.
To define the VBA code, I am using the "Integrate components using visualbasic application" Mathworks guide, but I cant make it to run the .dll. Im not sure how to define the function with the array as input and call the .dll library, I have referenced it properly but I cant execute it. The parameter called "inputscript" reads the data from Excel and my intention is to use this array as input for the .dll supplying the structure array input used in Matlab.
Can you see any error?
Here is the VBA code:

回答 (0 件)

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by