afxv_w32.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. // afxv_w32.h - target version/configuration control for Win32
  11. #ifdef _WINDOWS_
  12. #error WINDOWS.H already included. MFC apps must not #include <windows.h>
  13. #endif
  14. // STRICT is the only supported option (NOSTRICT is no longer supported)
  15. #ifndef STRICT
  16. #define STRICT 1
  17. #endif
  18. #ifndef WIN32
  19. #define WIN32
  20. #endif
  21. #ifndef WIN32_LEAN_AND_MEAN
  22. #define WIN32_LEAN_AND_MEAN
  23. #endif
  24. #define WIN32_EXTRA_LEAN
  25. #define NOSERVICE
  26. #define NOMCX
  27. #define NOIME
  28. #define NOSOUND
  29. #define NOCOMM
  30. #define NOKANJI
  31. #define NORPC
  32. #define NOPROXYSTUB
  33. #define NOIMAGE
  34. #define NOTAPE
  35. /////////////////////////////////////////////////////////////////////////////
  36. // Turn off warnings for /W4
  37. // To resume any of these warning: #pragma warning(default: 4xxx)
  38. // which should be placed after the AFX include files
  39. #ifndef ALL_WARNINGS
  40. #pragma warning(disable: 4201) // winnt.h uses nameless structs
  41. #endif
  42. #define _WIN32_WINDOWS 0x0500
  43. #include <windows.h>
  44. #ifndef EXPORT
  45. #define EXPORT
  46. #endif
  47. #ifndef _INC_TCHAR
  48. #include <tchar.h> // used for ANSI v.s. UNICODE abstraction
  49. #endif
  50. #ifdef _MBCS
  51. #ifndef _INC_MBCTYPE
  52. #include <mbctype.h>
  53. #endif
  54. #ifndef _INC_MBSTRING
  55. #include <mbstring.h>
  56. #endif
  57. #endif
  58. /////////////////////////////////////////////////////////////////////////////