Borrar filtros
Borrar filtros

Dll is not a valid Win32

37 visualizaciones (últimos 30 días)
Max-Henri
Max-Henri el 28 de Feb. de 2023
Respondida: Animesh el 10 de Mzo. de 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,

Respuestas (1)

Animesh
Animesh el 10 de Mzo. de 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.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by