I took this progrAM from OpenGL superbible 5th edition.I setup everything like they said in the book,the include paths and also including existing items for the project.
You are going to need to right click your project from the solution explorer -> Properties -> Linker -> System and make sure that SubSystem is set to Console.