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
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?