c++windowswinapimfc

What is the Win compile switch to turn off #pragma deprecated warning?


Using Visual Studio .NET 2003 C++ and the wininet.dll Am seeing many C4995 warnings

More info

Any help is appreciated.

Thanks.


Solution

  • You can use #pragma warning as shown on that MSDN page:

    #pragma warning(disable: 4995)
    

    Or, you can turn the warning off for the whole project in the project's properties (right click project -> Properties -> C/C++ -> Advanced -> Disable Specific Warnings). On the command line, you can achieve the same effect using /wd4995.