#pragma once
2) message
#pragma message("Compiling " __FILE__)
3) pack
#pragma pack(push, N) N=1,2,4,8,16
// code here
#pragma pack(pop)
4) warning
#pragma warning(disable : 4507 34)
#pragma warning(once : 4385)
#pragma warning(error : 164)
#pragma warning(disable : 4507 34; once : 4385; error : 164)
#pragma warning(disable : 4705)
// code here
#pragma warning(default : 4705)
#pragma warning(push)
#pragma warning(disable : 4705)
#pragma warning(disable : 4706)
#pragma warning(disable : 4707)
// code here
#pragma warning(pop)
5) comment
#pragma comment(compiler)
#pragma comment(user, "Compiled on " __DATE__ " at " __TIME__)
#pragma comment(lib, "winmm.lib")
#ifdef _DEBUG
#pragma comment(lib, "fooD.lib")
#else
#pragma comment(lib, "foo.lib")
#endif
#pragma comment(exestr, "copyright (c) by SOMEONE")
#pragma comment(linker, "/SUBSYSTEM:WINDOWS")
#pragma comment(linker, "/NODEFAULTLIB:libc.lib")
#pragma comment(linker, "/NOENTRY")
#pragma comment(linker, "/OUT:filename")
http://blog.donews.com/honsan/archive/2005/06/13/427811.aspx