When trying to build me program the error message
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Marking Program.exe : fatal error LNK1120: 1 unresolved externals occurs. I am not sure why this happens, any thoughts
It sounds like you had originally specified a (GUI) Windows application, but provided code for a console application. The GUI app expects WinMain, the console app expects main. It may be easiest to create a new project as a Windows Console Application, and then add your existing source file(s) to it.