"not a valid win32 application

11 visualizzazioni (ultimi 30 giorni)
Steve
Steve il 24 Giu 2011
Risposto: Pooja il 22 Mag 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?

Risposte (2)

Kaustubha Govind
Kaustubha Govind il 24 Giu 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 Commenti
Steve
Steve il 27 Giu 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 il 27 Giu 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.

Accedi per commentare.


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

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by