フィルターのクリア

Dll is not a valid Win32

37 ビュー (過去 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 Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by