stdafx.cpp
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. // stdafx.cpp : source file that includes just the standard includes
  2. //  stdafx.pch will be the pre-compiled header
  3. //  stdafx.obj will contain the pre-compiled type information
  4. #include "priv.h"
  5. #ifndef _ATL_STATIC_REGISTRY
  6. #define _ATL_STATIC_REGISTRY
  7. #endif
  8. #include "stdafx.h"
  9. // HACKHACK (scotth): windowsx.h #define SubclassWindow.  ATL 2.1 headers
  10. //  (namely atlwin.h and atlwin.cpp) have a member function with the
  11. //  same name.
  12. #ifdef SubclassWindow
  13. #undef SubclassWindow
  14. #endif
  15. #undef  lstrcmpi
  16. #define lstrcmpi StrCmpI
  17. #undef  lstrcpyn
  18. #define lstrcpyn StrCpyN
  19. #undef  lstrcat
  20. #define lstrcat  StrCatW
  21. #undef  lstrcpy
  22. #undef  StrCpyW
  23. #define lstrcpy    StrCpyW
  24. #undef  wsprintf
  25. #undef  wsprintfW
  26. #define wsprintf   wsprintfW
  27. #ifdef _ATL_STATIC_REGISTRY
  28. #include <statreg.h>
  29. #include <statreg.cpp>
  30. #endif
  31. #undef ATL_DEBUG_QI 
  32. #include <atlimpl.cpp>
  33. //HACK!!!!
  34. #define OleCreatePropertyFrame(a, b, c, d, e, f, g, h, i, j, k) S_OK
  35. #include <atlctl.cpp>
  36. #include <atlwin.cpp>
  37. #undef  lstrcpy
  38. #undef  wsprintf
  39. #undef  lstrcmpi
  40. #undef  lstrcpyn
  41. #undef  lstrcat
  42. #define lstrcmpi    Do_not_use_lstrcmpi_use_StrCpyNI
  43. #define lstrcpyn    Do_not_use_lstrcpyn_use_StrCpyN
  44. #define lstrcpy     Do_not_use_lstrcpy_use_StrCpyN
  45. #define lstrcat     Do_not_use_lstrcat_use_StrCatBuff
  46. #define wsprintf    Do_not_use_wsprintf_use_wnsprintf
  47. #define StrCpyW     Do_not_use_StrCpyW_use_StrCpyNW