assemblymasm32

MASM32 Assembling error - C:\masm32\bin\ml.exe is not a valid Win32 application


Wanting to learn some Assembly programming, I installed the MASM32 SDK. After that, I followed this video. So, after creating my first asm file, I navigated to its folder through the command prompt, then typed:

\masm32\bin\ml /c /Zd /coff [name of my asm file]   

just as the guy does at 2:40 in the video.

At this point, instead of getting the successful Assembling message, a window pops up, telling me that:

C:\masm32\bin\ml.exe is not a valid Win32 application

Why am I getting this? How can I solve?

My OS is 64 bit Windows 7.


Solution

  • Solved by reinstalling the MASM32 SDK (same install.exe). To uninstall, simply delete the /masm32 folder. Solution suggested by Margaret Bloom.