commonly used VC++ code snippets