"not a valid win32 application

19 次查看(过去 30 天)
Steve
Steve 2011-6-24
回答: Pooja 2024-5-22
I have MatLab 5.2 which quite happily runs an old pre win32 dll running on Windows XP. However when using MatLab R2007b it states that the dll is 'not a valid win32 application'. I do not have the source code for this old dll so cannot recompile it; is there a work around for this problem?

回答(2 个)

Kaustubha Govind
Kaustubha Govind 2011-6-24
A similar problem was discussed in a previous question. Is your MATLAB a 64-bit installation? If yes, you cannot call into a 32-bit DLL. You can however install 32-bit MATLAB on your 64-bit machine to be able to call into the 32-bit DLL. See here for installation instructions and here for some caveats.
  2 个评论
Steve
Steve 2011-6-27
The dll was built about 10 years ago on windows 97, so it was compiled before win32. However MatLab 5.2 accepts it without error but Matlab R2007b does not and gives the error message that the dll is 'not a valid win32 application'. What is the difference between Matlab 5.2 & R2007b?
Kaustubha Govind
Kaustubha Govind 2011-6-27
Like I explained before - it is likely that you have the 64-bit version of MATLAB for R2007b (the first version of 64-bit MATLAB was R14SP3) and 32-bit MATLAB for the older version.

请先登录,再进行评论。


Pooja
Pooja 2024-5-22
epanet2.dll is not a valid Win32 application error coming for MATLAB R2024

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by