修复警告C4114警告C4091指向strsafe.h [英] Fix warning C4114 warning C4091 pointing to strsafe.h

查看:89
本文介绍了修复警告C4114警告C4091指向strsafe.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好b $ b

我在strsafe.h的下方收到警告你可以帮我修理



  typedef   unsigned   long  DWORD; 





警告1警告C4114:同一类型限定符多次使用C:\Program Files \ MicroSoft SDKs \ Windows\v6.0A\include\strsafe.h 56

警告2警告C4091:'typedef':当没有声明变量时,忽略'unsigned __int64'的左边C:\\ \\ Program Files \ MicroSoft SDKs \ Windows \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ br $> b $ b

我尝试了什么:



我不知道如何解决这些警告。请帮助我

解决方案

您使用的是哪个版本的Windows和Visual Studio。

您可以尝试下载并安装最新的SDK环境。


要禁用警告,通常使用pragma:

  #pragma warning(disable:warning-number- () b b例如:

  #pragma warning(disable:4705)  


Hi
I am getting warning at below line in strsafe.h could you please help me to fix

typedef unsigned long DWORD;



Warning 1 warning C4114: same type qualifier used more than once C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\strsafe.h 56
Warning 2 warning C4091: 'typedef ' : ignored on left of 'unsigned __int64' when no variable is declared C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\strsafe.h


Thank you

What I have tried:

I am not sure how to resolve these warnings. Please help me

解决方案

Which version of Windows and Visual Studio are you using.
You could try downloading and installing the latest SDK for your environment.


To disable warning you normally use the pragma:

#pragma warning( disable : warning-number-list )


For example:

#pragma warning( disable : 4705 )


这篇关于修复警告C4114警告C4091指向strsafe.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆