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

Windows Kernel

Development Platform:

Visual C++

  1. #include "stdafx.h"
  2. #pragma hdrstop
  3. // windowsx.h has a macro called SubclassWindow, which conflicts with
  4. // ATL members with the same name.  This sucks.
  5. #undef SubclassWindow
  6. //-----------------------------------------------------------------------------
  7. //
  8. // statreg.cpp
  9. //
  10. #ifdef _ATL_STATIC_REGISTRY
  11. #include <statreg.h>
  12. #include <statreg.cpp>
  13. #endif
  14. //-----------------------------------------------------------------------------
  15. //
  16. // atlctl.cpp
  17. //
  18. // We shouldn't ever do this because we broke it in the interest of
  19. // severing ties with OLEAut32.  DeskMovr doesn't need this.
  20. #define OleCreatePropertyFrame(a,b,c,d,e,f,g,h,i,j,k) Bad_OCPF()
  21. inline HRESULT Bad_OCPF(void) {
  22.     ASSERT(FALSE);
  23.     return OLEOBJ_S_CANNOT_DOVERB_NOW;
  24. }
  25. #include "atlctl.cpp"
  26. #undef OleCreatePropertyFrame
  27. // End of atlctl.cpp hackitude.
  28. //-----------------------------------------------------------------------------
  29. //
  30. // atlimpl.cpp
  31. //
  32. // The use of ocscpy in atlimpl.cpp is not safe because it can overflow
  33. // the target buffer.  Change it to a safe version.
  34. #define ocscpy(dst, src) StrCpyNW(dst, src, ARRAYSIZE(dst))
  35. #include "atlimpl.cpp"
  36. #undef ocscpy
  37. // End of atlimpl.cpp hackitude.
  38. //-----------------------------------------------------------------------------
  39. //
  40. // atlwin.cpp
  41. //
  42. #include "atlwin.cpp"