While converting projects from VS 2008 to VS 2010 -- some "WIN..." definitions need tweaking
-
Friday, March 04, 2011 7:46 PMI just spent a couple of hours converting 75 VS 2008 projs to VS 2010 [Professional]. All went well except for a number of very pesky definitions in stdafx.h. Here are the ones I ended up with that worked. I have no clue as to the long term implications of these changes. I assume when VS 2012 comes out, we'll need yet another re-tweak. Has anyone else experienced this, or am I the only VS 2010 user to-date with this problem???
charles.leggette
All Replies
-
Friday, March 04, 2011 7:47 PM
oops here they are....
#ifndef WINVER // Allow use of features specific to Windows 95 and Windows NT 4 or later.
#define WINVER 0x0500 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows NT 4 or later.
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#endif
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
#define _WIN32_IE 0x0550 // Change this to the appropriate value to target IE 5.0 or later.
#endif
charles.leggette -
Friday, March 04, 2011 11:16 PM
This is not caused by VC upgrade but rather a Windows SDK upgrade. Support for Windows 2000 and pre-XP SP2 versions are dropped. It looks like you are still targeting Windows 98 and IE 5.5?
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP -
Monday, March 07, 2011 2:19 PMNo, I'm targeting XP,Vista,Win7 ....can you give me what they should be based on that target...thank you.
charles.leggette -
Monday, March 07, 2011 3:14 PM
change WINVER, _WIN32_WINNT and _WIN32_WINDOWS to 0x0501, and change _WIN32_IE to 0x0600
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- Marked As Answer by a401kPensionCoder Tuesday, March 08, 2011 12:01 PM
-
Monday, October 10, 2011 9:47 AM
Hi,
I also have the same issue as your's ,can you tell me how did you convert all the VS2008 solutions to VS2010? I am trying to build Vs2008 solutions and I have 110 of them, and my builds fail because of this solution conversion problem or this WINVER, _WIN32_WINNT and _WIN32_WINDOWS to 0x0501, and change _WIN32_IE to 0x0600 problem.
Please guide me.

