home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / allinone / server / stdafx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-03  |  1.0 KB  |  40 lines

  1. #if !defined(AFX_STDAFX_H__7CE086A4_3E78_11D0_AE6B_00C04FD7D06E__INCLUDED_)
  2. #define AFX_STDAFX_H__7CE086A4_3E78_11D0_AE6B_00C04FD7D06E__INCLUDED_
  3.  
  4. // stdafx.h : include file for standard system include files,
  5. //      or project specific include files that are used frequently,
  6. //      but are changed infrequently
  7.  
  8. #pragma warning(disable: 4786)
  9.  
  10. #define _WIN32_WINNT 0x0400
  11. #define _ATL_APARTMENT_THREADED
  12.  
  13.  
  14. #include <afxwin.h>
  15. #include <afxdisp.h>
  16. #include <atlbase.h>
  17.  
  18. #include "cdata.h"
  19.  
  20. //You may derive a class from CComModule and use it if you want to override
  21. //something, but do not change the name of _Module
  22. #ifndef _USRDLL
  23. class CExeModule : public CComModule
  24. {
  25. public:
  26.     LONG Unlock();
  27.     DWORD dwThreadID;
  28. };
  29. extern CExeModule _Module;
  30. #else
  31. extern CComModule _Module;
  32. #endif
  33.  
  34. #include <atlcom.h>
  35.  
  36. //{{AFX_INSERT_LOCATION}}
  37. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  38.  
  39. #endif // !defined(AFX_STDAFX_H__7CE086A4_3E78_11D0_AE6B_00C04FD7D06E__INCLUDED)
  40.