I found here a great source of building and using code snippets for VS 2008.