home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / atlduck / stdafx.h < prev   
C/C++ Source or Header  |  1998-03-26  |  2KB  |  55 lines

  1. // stdafx.h : include file for standard system include files,
  2. //      or project specific include files that are used frequently,
  3. //      but are changed infrequently
  4. //
  5. // This is a part of the Active Template Library.
  6. // Copyright (C) 1996-1998 Microsoft Corporation
  7. // All rights reserved.
  8. //
  9. // This source code is only intended as a supplement to the
  10. // Active Template Library Reference and related
  11. // electronic documentation provided with the library.
  12. // See these sources for detailed information regarding the
  13. // Active Template Library product.
  14.  
  15. #if !defined(AFX_STDAFX_H__120B7297_65BF_11D0_9DDC_00A0C9034892__INCLUDED_)
  16. #define AFX_STDAFX_H__120B7297_65BF_11D0_9DDC_00A0C9034892__INCLUDED_
  17.  
  18. #if _MSC_VER >= 1000
  19. #pragma once
  20. #endif // _MSC_VER >= 1000
  21.  
  22. #define STRICT
  23.  
  24.  
  25. #define _WIN32_WINNT 0x0400
  26. #define _ATL_APARTMENT_THREADED
  27.  
  28. #include <stdio.h>
  29.  
  30. #include <atlbase.h>
  31. //You may derive a class from CComModule and use it if you want to override
  32. //something, but do not change the name of _Module
  33. class CExeModule : public CComModule
  34. {
  35. public:
  36.     LONG Unlock();
  37.     DWORD dwThreadID;
  38. };
  39. extern CExeModule _Module;
  40. #include <atlcom.h>
  41. #include <atlwin.h>
  42.  
  43. #ifndef _VERIFY
  44. #ifdef _DEBUG
  45. #define _VERIFY(x)  if (!x) {_ASSERT(FALSE);}
  46. #else
  47. #define _VERIFY(x)  x
  48. #endif
  49. #endif
  50.  
  51. //{{AFX_INSERT_LOCATION}}
  52. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  53.  
  54. #endif // !defined(AFX_STDAFX_H__120B7297_65BF_11D0_9DDC_00A0C9034892__INCLUDED)
  55.