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:
Hi
I am getting warning at below line in strsafe.h could you please help me to fix

C++
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
Posted
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
 
Comments
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 - https://www.microsoft.com/en-us/download/details.aspx?id=3138
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:
C++
#pragma warning( disable : warning-number-list )

For example:
C++
#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