Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
WINVER not defined. Defaulting to 0x0400, which is appropriate for all supported Windows CE versions

How can i remove this warnning.
I have ported my winCE project from ppc2003 to WM5.

Please reply if anyone can help me out.

Thanks
Vickey
Posted

go to project settings->C/C++->Preprocessor
add WINVER=0xxx (0xxx is the version number one you need).
I dont know what is the approprate 0xxx.
if you give 0x0400 and it doesnt show any errors, i think it will be fine.
if it shows an error, mostly "undeclared identifier X". go to defention of X in windows headers, you may find #if WINVER >= xxx above it. use this xxx value within the preprocessor
 
Share this answer
 
Comments
vickey_27 3-Jun-11 3:21am    
hey Resmi,
it works, thanx a lot for ur quik responce.
Resmi Anna 3-Jun-11 3:58am    
WC.
why dont u mark it as solved:):)???
vickey_27 3-Jun-11 4:36am    
sorry, now i accepted the answer,
Thanks:)
Typically, it is added to stdafx.h as the following


C#
// NOTE - this is value is not strongly correlated to the Windows CE OS version being targeted
#define WINVER _WIN32_WCE
 
Share this answer
 
Comments
Richard MacCutchan 28-Sep-15 13:22pm    
This question is more than four years old. Please do not post in dead questions.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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