home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / mapi / simple.frm / precomp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  1.6 KB  |  68 lines

  1. /***********************************************************************
  2.  *
  3.  *  PRECOMP.H
  4.  *
  5.  *
  6.  *  Copyright 1995 Microsoft Corporation.  All Rights Reserved.
  7.  *
  8.  ***********************************************************************/
  9.  
  10. #define         STRICT  1
  11.  
  12. #include        <windows.h>
  13. #include        <windowsx.h>
  14. #include        <ole2.h>
  15. #include        <mapix.h>
  16. #include        <mapiform.h>
  17. #include        <mapidbg.h>
  18. #include        <mapiutil.h>
  19. #include        <exchform.h>
  20. #include        <pdkver.h>
  21. #include        <strstrea.h>
  22. #include        "resource.h"
  23.  
  24. #include        "viewntfr.h"
  25. #include        "lasterr.h"
  26.  
  27. #include        "guid.h"
  28.  
  29. #define ASSERT(a)       Assert(a)
  30.  
  31. extern char g_szFormName[];
  32. extern char g_szWindowCaption[];
  33. extern char g_szSendWinClass[];
  34. extern char g_szReadWinClass[];
  35.  
  36.  
  37.  
  38. //
  39. // CClassFactory
  40. //
  41.  
  42. class CClassFactory : public IClassFactory
  43. {
  44. public:
  45.     STDMETHOD(QueryInterface) (THIS_ REFIID riid, LPVOID FAR * ppvObj);
  46.     STDMETHOD_(ULONG,AddRef)  (THIS);
  47.     STDMETHOD_(ULONG,Release) (THIS);
  48.     STDMETHOD (CreateInstance) (LPUNKNOWN pUnkOuter, REFIID riid,
  49.                                 LPVOID FAR* ppvObject);
  50.     STDMETHOD (LockServer) (BOOL fLock);
  51.  
  52.     CClassFactory(void);
  53.     ~CClassFactory(void);
  54.  
  55.     void FAR PASCAL ObjDestroyedCallback ();
  56.  
  57. public:
  58.     static HWND ms_hWndMain;    // Main window handle
  59.  
  60. protected:
  61.     ULONG m_cRef;               // Count of references
  62.     static ULONG ms_cObjs;      // Count of active objects
  63.     static ULONG ms_cLocks;     // Count of active locks
  64. };
  65.  
  66. #include        "formbase.h"
  67.  
  68.