Click here to Skip to main content
15,918,596 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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
Updated 20-Mar-16 20:58pm

Which version of Windows and Visual Studio are you using.
You could try downloading and installing the latest SDK for your environment.
Share this answer
ptr_Electron 19-Mar-16 3:35am    
I am using Windows 7 and Microsoft visual C++ 2008. Please advise
«_Superman_» 21-Mar-16 3:06am    
Try downloading and installing the Windows 7 SDK -
Arthur V. Ratz 21-Mar-16 2:56am    
First you should consider what these warnings are. If they don't affect the program execution just disable them the way I've shown in my quick solution here.
To disable warning you normally use the pragma:
#pragma warning( disable : warning-number-list )

For example:
#pragma warning( disable : 4705 )
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900