<insert program name>.exe is not a valid Win32 application

Mar 23, 2014 at 5:36pm
My program compiles just fine and then I get this error saying that the program is not a valid Win32 application. My project consists of two files: Classes.h and mainHotSA.cpp

You can view the code for the first here:
https://dl.dropboxusercontent.com/u/267089024/HotSA/Classes.h

And here's the code for mainHotSA.cpp:
https://dl.dropboxusercontent.com/u/267089024/HotSA/mainHotSA.cpp

Also, I don't know if it matters or not but I'm running a Windows 7 64-bit, and I compiled the code with MinGW.
And if you want to try to run the .exe yourself:
https://dl.dropboxusercontent.com/u/267089024/HotSA/Heroes%20of%20the%20Stone%20Age.exe

I have no clue what to do here as this is the first time something like this happend.
Mar 26, 2014 at 1:29pm
*bump
Mar 26, 2014 at 2:12pm
Have you tried running it in legacy mode? http://msdn.microsoft.com/en-us/library/windows/desktop/aa384249(v=vs.85).aspx

Don't get too discouraged, this is a common enough issue for people to over look.
Mar 26, 2014 at 2:20pm
What compiler are you using?
Mar 27, 2014 at 1:47pm
I'm using mingw, and this only happens for this program.
Mar 27, 2014 at 9:00pm
It doesn't make sense then. I'd say create a new project and copy+paste all of the code into the new project. You are making new folders for all of your projects right?
Topic archived. No new replies allowed.