These lessons teach the viewer how to setup Visual Studio 2008 and 2010 Express, as well as CodeBlocks, to run old DirectX code. Presumably the steps could be followed to get any library, like OpenGL, up and running. For the lessons I use Andre LaMothe's book, "Tricks of the Windows Game Programming Gurus" and I get the first game, FreakOut, to run.

Here are the links