home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / common / msdev98 / template / atl / aatlsdt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-16  |  529 b   |  25 lines

  1. #define _ATL_APARTMENT_THREADED
  2.  
  3.  
  4. #include <atlbase.h>
  5. //You may derive a class from CComModule and use it if you want to override
  6. //something, but do not change the name of _Module
  7. [!if=(ProjectType, "EXE")]
  8. class C[!ProjectNameSafe]Module : public CComModule
  9. {
  10. public:
  11.     LONG Unlock();
  12.     LONG Lock();
  13. [!if!=(MFCOLE, "1")]
  14.     LPCTSTR FindOneOf(LPCTSTR p1, LPCTSTR p2);
  15. [!endif]
  16.  
  17.     DWORD dwThreadID;
  18. };
  19. extern C[!ProjectNameSafe]Module _Module;
  20. [!else]
  21. extern CComModule _Module;
  22. [!endif]
  23.  
  24. #include <atlcom.h>
  25.