Info

This question is closed. Reopen it to edit or answer.

Call to functions in external DLL fails

1 view (last 30 days)
Mehdi
Mehdi on 27 Mar 2016
Closed: MATLAB Answer Bot on 20 Aug 2021
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!