home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c13 / atlstrx / strx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  652 b   |  33 lines

  1. // strX.h : Declaration of the CstrX
  2.  
  3. #ifndef __STRX_H_
  4. #define __STRX_H_
  5.  
  6. #include "resource.h"       // main symbols
  7.  
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CstrX
  10. class ATL_NO_VTABLE CstrX : 
  11.     public CComObjectRootEx<CComObjectThreadModel>,
  12.     public CComCoClass<CstrX, &CLSID_strX>,
  13.     public IDispatchImpl<IstrX, &IID_IstrX, &LIBID_ATLSTRXLib>
  14. {
  15. public:
  16.     CstrX()
  17.     {
  18.     }
  19.  
  20. DECLARE_REGISTRY_RESOURCEID(IDR_STRX)
  21.  
  22. BEGIN_COM_MAP(CstrX)
  23.     COM_INTERFACE_ENTRY(IstrX)
  24.     COM_INTERFACE_ENTRY(IDispatch)
  25. END_COM_MAP()
  26.  
  27. // IstrX
  28. public:
  29.     STDMETHOD(ATLstrlwrX)(BSTR *s);
  30. };
  31.  
  32. #endif //__STRX_H_
  33.