home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / com / labrador / prelab.h < prev   
C/C++ Source or Header  |  1998-04-02  |  893b  |  34 lines

  1. // This is a part of the ActiveX Template Library.
  2. // Copyright (C) 1996 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // ActiveX Template Library Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // ActiveX Template Library product.
  10.  
  11. // prelab.h : include file for standard system include files,
  12. //      or project specific include files that are used frequently,
  13. //      but are changed infrequently
  14.  
  15.  
  16. #include <atlbase.h>
  17.  
  18. class CMyModule : public CComModule
  19. {
  20. public:
  21.     LONG Unlock()
  22.     {
  23.         LONG l = CComModule::Unlock();
  24.         if (l == 0)
  25.             PostThreadMessage(dwThreadID, WM_QUIT, 0, 0);
  26.         return l;
  27.     }
  28.     DWORD dwThreadID;
  29. };
  30.  
  31. extern CMyModule _Module;
  32.  
  33. #include <atlcom.h>
  34.