Windows Definitions and Warning Level 4

[Previous] [Next]

When I develop software, I always try to ensure that the code compiles free of errors and warnings. I also like to compile at the highest possible warning level so that the compiler does the most work for me, examining even the smallest details of my code. For the Microsoft C/C++ compilers, I built all the sample applications using warning level 4.

In this section of CmnHdr.h, I make sure that the warning level is set to 4 and that CmnHdr.h includes the standard Windows.h header file. At warning level 4, the compiler emits "warnings" for things that I don't consider problems, so I explicitly tell the compiler to ignore certain benign warnings by using the #pragma warning directive.



Programming Server-Side Applications for Microsoft Windows 2000
Programming Server-Side Applications for Microsoft Windows 2000 (Microsoft Programming)
ISBN: 0735607532
EAN: 2147483647
Year: 2000
Pages: 126

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net