When I compile, I get the error "unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup". I've been searching online for help, and it says to change the Linker's Entry Point to "wWinMainCRTStartup", but when I do this I still get the exact same error as before. Am I doing something wrong?
If that is your entire program, then yes, you are missing the main entry point for the program. You are trying to complie a GUI application, so you are required to provide a WinMain() function. If you were creating a console application, you would be required to provide a main() function.
If you are using Visual Studio, just start over: Create a new Win32 Project, then select from the settings that you want an empty console application, then add a single CPP file, add the above code and finally add a int main() function.