home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / mts4.cab / Account.VC_GetReceipt.h < prev    next >
C/C++ Source or Header  |  1997-11-14  |  2KB  |  54 lines

  1. // Filename: GetReceipt.h
  2. //
  3. // Description: Declaration of GetReceipt
  4. //
  5. // This file is provided as part of the Microsoft Transaction Server Samples
  6. //
  7. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT 
  8. // WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, 
  9. // INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 
  10. // OF MERCHANTABILITY AND/OR FITNESS FOR A  PARTICULAR 
  11. // PURPOSE.
  12. //
  13. // Copyright (C) 1997 Microsoft Corporation, All rights reserved
  14.  
  15. #if !defined(AFX_GETRECEIPT_H__A81260B3_DDC8_11D0_B5A0_00C04FB957D8__INCLUDED_)
  16. #define AFX_GETRECEIPT_H__A81260B3_DDC8_11D0_B5A0_00C04FB957D8__INCLUDED_
  17.  
  18. #if _MSC_VER >= 1000
  19. #pragma once
  20. #endif // _MSC_VER >= 1000
  21.  
  22. #include "resource.h"       // main symbols
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CGetReceipt
  26.  
  27. class CGetReceipt : 
  28.     public CComDualImpl<IGetReceipt, &IID_IGetReceipt, &LIBID_ACCOUNT>, 
  29.     public ISupportErrorInfo,
  30.     public CComObjectRoot,
  31.     public CComCoClass<CGetReceipt,&CLSID_CGetReceipt>
  32. {
  33. public:
  34.     CGetReceipt() {}
  35. BEGIN_COM_MAP(CGetReceipt)
  36.     COM_INTERFACE_ENTRY(IDispatch)
  37.     COM_INTERFACE_ENTRY(IGetReceipt)
  38.     COM_INTERFACE_ENTRY(ISupportErrorInfo)
  39. END_COM_MAP()
  40. //DECLARE_NOT_AGGREGATABLE(CGetReceipt) 
  41. // Remove the comment from the line above if you don't want your object to 
  42. // support aggregation. 
  43.  
  44. DECLARE_REGISTRY_RESOURCEID(IDR_GetReceipt)
  45. // ISupportsErrorInfo
  46.     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  47.  
  48. // IGetReceipt
  49. public:
  50.     STDMETHOD (GetNextReceipt) (OUT long* plReceiptNo);
  51. };
  52.  
  53. #endif // !defined(AFX_GETRECEIPT_H__A81260B3_DDC8_11D0_B5A0_00C04FB957D8__INCLUDED_)
  54.