summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/MFC/client/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/MFC/client/stdafx.h')
-rwxr-xr-x[-rw-r--r--]cpp/demo/Ice/MFC/client/stdafx.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/demo/Ice/MFC/client/stdafx.h b/cpp/demo/Ice/MFC/client/stdafx.h
index 1112d4eaa13..7126aebe7ef 100644..100755
--- a/cpp/demo/Ice/MFC/client/stdafx.h
+++ b/cpp/demo/Ice/MFC/client/stdafx.h
@@ -33,13 +33,19 @@
#endif
#ifndef WINVER
-# if defined(_MSC_VER) && _MSC_VER > 1300
+# if defined(_MSC_VER) && _MSC_VER > 1300 && _MSC_VER < 1600
# define WINVER 0x0400
+# elif defined(_MSC_VER) && _MSC_VER >=1600
+ # define WINVER 0x0501
# endif
#endif
#ifndef _WIN32_IE // Allow use of features specific to IE 4.0 or later.
-#define _WIN32_IE 0x0400 // Change this to the appropriate value to target IE 5.0 or later.
+# if defined(_MSC_VER) && _MSC_VER >=1600
+# define _WIN32_IE 0x0500 // Change this to the appropriate value to target IE 5.0 or later.
+# else
+# define _WIN32_IE 0x0400
+# endif
#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit