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