warning C4995 vs error C4995

后端 未结 3 1407
面向向阳花
面向向阳花 2021-01-21 09:45

When I build a project (with VS2012) I get folowing output several times:

 warning C4995: \'DwmEnableComposition\': name was marked as #pragma deprecated
         


        
3条回答
  •  情深已故
    2021-01-21 10:08

    The problem is the DwmEnableComposition function. Is deprecated as of Windows 8.

    When the compiler encounters a deprecated symbol like in this case, it issues C4995.

    More info:

    DwmEnableComposition function

    Compiler Warning (level 3) C4995

提交回复
热议问题