Dll is not a valid Win32

21 次查看(过去 30 天)
Max-Henri
Max-Henri 2023-2-28
回答: Animesh 2023-3-10
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,

回答(1 个)

Animesh
Animesh 2023-3-10
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.

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by