I know that you can use #pragmato disable a warning in a specific file, but I want to "disable" a specific warning for the entire VC ++ 2008 project.
#pragma
I found the option Configuration Properties->C/C++->Advanced->Disable Specific Warnings, but when I entered the numerical warning code and recompiled the .cpp file in the question, the warning was still generated.
Configuration Properties->C/C++->Advanced->Disable Specific Warnings
If your project includes other projects or uses objects from another project, make sure that you add a warning to the project where the warning is. It should always work.
, . C4005.