home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / Samples / General / ADsError / IADsError.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-13  |  1.3 KB  |  44 lines

  1. // IADsError.h: Definition of the ADsError class
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_IADSERROR_H__417D01E1_F1C6_11D2_BC88_00C04FD430AF__INCLUDED_)
  6. #define AFX_IADSERROR_H__417D01E1_F1C6_11D2_BC88_00C04FD430AF__INCLUDED_
  7.  
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11.  
  12. #include "resource.h"       // main symbols
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // ADsError
  16.  
  17. class ADsError : 
  18.     public IDispatchImpl<IADsError, &IID_IADsError, &LIBID_ADSERRORLib>, 
  19.     public ISupportErrorInfo,
  20.     public CComObjectRoot,
  21.     public CComCoClass<ADsError,&CLSID_ADsError>
  22. {
  23. public:
  24.     ADsError() {}
  25. BEGIN_COM_MAP(ADsError)
  26.     COM_INTERFACE_ENTRY(IDispatch)
  27.     COM_INTERFACE_ENTRY(IADsError)
  28.     COM_INTERFACE_ENTRY(ISupportErrorInfo)
  29. END_COM_MAP()
  30. //DECLARE_NOT_AGGREGATABLE(ADsError) 
  31. // Remove the comment from the line above if you don't want your object to 
  32. // support aggregation. 
  33.  
  34. DECLARE_REGISTRY_RESOURCEID(IDR_ADsError)
  35. // ISupportsErrorInfo
  36.     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  37.  
  38. // IADsError
  39. public:
  40.     STDMETHOD(GetErrorMessage)(/*[in]*/ long hResult, /*[out,retval]*/ BSTR *pbMsg);
  41. };
  42.  
  43. #endif // !defined(AFX_IADSERROR_H__417D01E1_F1C6_11D2_BC88_00C04FD430AF__INCLUDED_)
  44.