Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.0 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. // stdafx.h : include file for standard system include files,
  3. // or project specific include files that are used frequently, but
  4. // are changed infrequently
  5. //
  6. #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
  7. #include <afxwin.h> // MFC core and standard components
  8. #include <afxext.h> // MFC extensions
  9. #include <lm.h>
  10. #include <dsgetdc.h>
  11. #ifndef _AFX_NO_AFXCMN_SUPPORT
  12. #include <afxcmn.h> // MFC support for Windows Common Controls
  13. #endif // _AFX_NO_AFXCMN_SUPPORT
  14. #ifdef DBG
  15. extern bool g_fDebug;
  16. #define ODS( x ) \
  17. if( g_fDebug ) OutputDebugString( x );\
  18. #define DBGMSG( x , y ) \
  19. {\
  20. TCHAR tchErr[260]; \
  21. if( g_fDebug ){ \
  22. wsprintf( tchErr , x , y ); \
  23. ODS( tchErr ); \
  24. }\
  25. }\
  26. #define DBGMSGx( x , y , z ) \
  27. {\
  28. TCHAR tchErr[ 260 ]; \
  29. if( g_fDebug ){ \
  30. wsprintf( tchErr , x , y , z ); \
  31. ODS( tchErr ); \
  32. }\
  33. }\
  34. #else
  35. #define ODS
  36. #define DBGMSG
  37. #define DBGMSGx
  38. #endif