"not a valid win32 application

25 views (last 30 days)
Steve
Steve on 24 Jun 2011
Answered: Pooja on 22 May 2024
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?

Answers (2)

Kaustubha Govind
Kaustubha Govind on 24 Jun 2011
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 Comments
Steve
Steve on 27 Jun 2011
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 on 27 Jun 2011
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.

Sign in to comment.


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

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!