Try this:
Open a new project directory with nothing in it. Open the project as a windows application.
Then add your source files. Note make sure the project has the same name as the program.
I have MSVC++ 4.0, some of the example files all you need to do is make sure you have all the gl lib files listed in the link menu.