home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap04 / lst44 / lst44obj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-26  |  932 b   |  35 lines

  1. // Lst44Obj.h : Declaration of the CLst44Object
  2.  
  3.  
  4. #include "resource.h"       // main symbols
  5.  
  6. /////////////////////////////////////////////////////////////////////////////
  7. // lst44
  8.  
  9. //REVIEW -- using pointers to ID's is necessary because some compilers don't like
  10. //references as template arguments.
  11.  
  12. class CLst44Object : 
  13.     public CComDualImpl<ILst44, &IID_ILst44, &LIBID_LST44Lib>, 
  14.     public ISupportErrorInfo,
  15.     public CComObjectBase<&CLSID_Lst44>
  16. {
  17. public:
  18.     CLst44Object() {}
  19. BEGIN_COM_MAP(CLst44Object)
  20.     COM_INTERFACE_ENTRY(IDispatch)
  21.     COM_INTERFACE_ENTRY(ILst44)
  22.     COM_INTERFACE_ENTRY(ISupportErrorInfo)
  23. END_COM_MAP()
  24. // Use DECLARE_NOT_AGGREGATABLE(CLst44Object) if you don't want your object
  25. // to support aggregation
  26. DECLARE_AGGREGATABLE(CLst44Object)
  27. // ISupportsErrorInfo
  28.     STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
  29.  
  30. // ILst44
  31. public:
  32.     STDMETHOD(GetMachineName)(BSTR *retval);
  33.  
  34. };
  35.