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

  1. /*
  2.  * TstMacro.h
  3.  * $Header: /bcsample/IFACEDLL/TSTMACRO.H 1     5/28/96 1:12p Dave $
  4.  *
  5.  * Description:
  6.  *  Macro that declares the IUnknown virtual functions.  This macro is
  7.  *  intended for use by classes that derive from the CIUnknown class.
  8.  *
  9.  * Notes:
  10.  *  <implementation notes go here>
  11.  *
  12.  ***********************************************************************
  13.  *
  14.  * NuMega Technologies, Inc.
  15.  * P.O. Box 7780
  16.  * Nashua, NH 03060
  17.  *
  18.  * (c) Copyright 1994, 1995, 1996 NuMega Technologies, Inc.
  19.  * ALL RIGHTS RESERVED.
  20.  *
  21.  ***********************************************************************
  22.  *
  23.  **********************************************************************/
  24.  
  25. /*----------------------------------------------------------------------
  26. DISCUSSION      :
  27.     The macros that should be used to ease adding interfaces to the
  28. Interface Test object.
  29. ----------------------------------------------------------------------*/
  30. #ifndef _TSTMACRO_H
  31. #define _TSTMACRO_H
  32.  
  33. // Who whats to type the IUnknown functions over and over?
  34. #define DECLARE_IUNKNOWNFNS() \
  35.     STDMETHODIMP QueryInterface ( REFIID , PPVOID ) ;   \
  36.     STDMETHODIMP_( ULONG ) AddRef ( void ) ;            \
  37.     STDMETHODIMP_( ULONG ) Release ( void )
  38.  
  39. #endif      // _TSTMACRO_H
  40.  
  41.  
  42.