home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / numega / sc501.exe / data1.cab / Examples / IFT_DLL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  1.6 KB  |  60 lines

  1. /*
  2.  * IFT_DLL.h
  3.  * $Header: /bcsample/IFACEDLL/IFT_DLL.H 1     5/28/96 1:12p Dave $
  4.  *
  5.  * Description:
  6.  *  Declaration of the class factory for the IFACEDLL server.
  7.  *
  8.  * Notes:
  9.  *  <implementation notes go here>
  10.  *
  11.  ***********************************************************************
  12.  *
  13.  * NuMega Technologies, Inc.
  14.  * P.O. Box 7780
  15.  * Nashua, NH 03060
  16.  *
  17.  * (c) Copyright 1994, 1995, 1996 NuMega Technologies, Inc.
  18.  * ALL RIGHTS RESERVED.
  19.  *
  20.  ***********************************************************************
  21.  *
  22.  **********************************************************************/
  23.  
  24.  
  25. #ifndef IFT_DLL_H
  26. #define IFT_DLL_H
  27.  
  28. BOOL MakeRegEntry ( LPCTSTR szKey      , 
  29.                     LPCTSTR szEntryKey ,
  30.                     LPCTSTR szEntryVal  ) ;
  31.  
  32. // This class creates the Interface Test Objects.
  33. class CIFaceTestClassFactory : public IClassFactory
  34. {
  35. protected   :
  36.     // This holds the reference count for the DLL.
  37.     ULONG           m_nRef ;
  38.  
  39.  public :
  40.     // The class factory constructor.
  41.     CIFaceTestClassFactory ( void ) ;
  42.     // The class factory destructor.
  43.     ~CIFaceTestClassFactory ( void ) ;
  44.  
  45.     // Standard IUnknown members
  46.     STDMETHODIMP QueryInterface ( REFIID , PPVOID ) ;
  47.     STDMETHODIMP_( ULONG ) AddRef ( void ) ;
  48.     STDMETHODIMP_( ULONG ) Release ( void ) ;
  49.  
  50.     // Standard IClassFactory members
  51.     STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , PPVOID ) ;
  52.     STDMETHODIMP LockServer ( BOOL ) ;
  53. } ;
  54.  
  55. typedef CIFaceTestClassFactory * PCIFaceTestClassFactory ;
  56.  
  57. #endif // IFT_DLL_H
  58.  
  59.  
  60.