Effacer les filtres
Effacer les filtres

Dll is not a valid Win32

37 vues (au cours des 30 derniers jours)
Max-Henri
Max-Henri le 28 Fév 2023
Hi all,
I am running a 64bit matlab and I want to loadlibrary of a dll 64bit with matlab function (sim_proto.m).
loadlibrary('sim_win64',@sim_proto);
Matlab is giving me the following error
Error in loadlibrary
Caused by:
Error using
C:\simENMReplay_win64.dll is not a valid Win32 application.
I don't understand the error knowing that my matlab and my dll is 64bit. Can someone help me please ?
Thank you,
Regards,

Réponses (1)

Animesh
Animesh le 10 Mar 2023
Hello,
The error message "is not a valid Win32 application" error usually means that you are attempting to load a 32-bit DLL using 64-bit MATLAB. It is not possible to load a 32-bit DLL file in 64-bit executables.
I tried to load the DLL file in a 32-bit MATLAB and still got an error. The DLL file you provided is most probably corrupt.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by