#ifdef _DEBUG
cout << "_DEBUG is enabled for project abc." << endl;
#endif /* _DEBUG */
#ifdef _MT
cout << "_MT is enabled for project abc" << endl;
#endif
#ifdef _DLL
cout << "_DLL is enabled for project abc" << endl;
#endif
#ifdef _WIN32
cout << "_WIN32 is enabled for project abc" << endl; // _WIN32 is always defined no matter on 32bit or 64 bit OS.
#endif
cout << "_WIN64 is enabled for project abc" << endl;
#endif
CRT Library Features
http://msdn.microsoft.com/en-us/library/abx4dbyh.aspx