Info

此问题已关闭。 请重新打开它进行编辑或回答。

Call to functions in external DLL fails

1 次查看(过去 30 天)
Mehdi
Mehdi 2016-3-27
关闭: MATLAB Answer Bot 2021-8-20
I am loading a DLL along with its include file. Libfunctions lists all the functions properly. Call to the functions fail with Method not found. I verified the list of exported functions (using other tools) and they are valid.
Here is the code:
%Load Library
if not(libisloaded('Trialware'))
[notfound,warnings] = loadlibrary('Trialware.dll','TrialWare.h')
end
%Call function .
key='1289794832985798769878469056709379';
handle=double(0)
libfunctions('Trialware')
ret= calllib('Trialware','ReadSettingsRetStr',key, handle)
%print ret
ret= calllib('Trialware','DisplayRegistrationStr',key, handle)
%Clean up.
unloadlibrary lib
Does anyone know what is the issue? All helps appreciated.

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by