home *** CD-ROM | disk | FTP | other *** search
- /*----------------------------------------------------------------------
- Using this file to build other OLE interfaces.....
- 0. Save this file as something other than EX.H
- 1. Search for "_EX_H" and change them to the name of the file you are
- creating.
- 2. Search for "I*" and change it to the name of the interface you are
- deriving from.
- 3. Put the specific interface functions at the END of the class.
- ----------------------------------------------------------------------*/
- // Change these defines to the filename!!!
- #ifndef _EX_H
- #define _EX_H
-
- #include "IUnknown.h"
- #include "TstMacro.h"
-
- // Change the class name.
- // Change the I* name.
- class CI* : public CInternalQuery ,
- public I*
-
- {
- // Leave the protected section alone.
- protected :
- // Object reference count
- ULONG m_cRef ;
- // Controlling unknown
- LPUNKNOWN m_pUnkOuter ;
- // The base unknown class.
- PCIUnknown m_pBaseUnk ;
-
- public :
- // Change the I* to the name of the interface you are supporting.
- CI* ( LPUNKNOWN pUnkOuter , CIUnknown * pMainIUnk ) ;
- ~CI* ( void ) ;
-
- BOOL Init ( void ) ;
-
- virtual STDMETHODIMP InternalQueryInterface ( REFIID riid ,
- PPVOID ppv ) ;
-
- DECLARE_IUNKNOWNFNS() ;
-
- // PUT ALL INTERFACE SPECIFIC FUNCTIONS HERE
- } ;
-
- #endif // _EX_H
-
-