qse/ase/com/Buffer.h

39 lines
742 B
C
Raw Normal View History

2006-12-09 11:50:08 +00:00
/*
2006-12-10 16:13:50 +00:00
* $Id: Buffer.h,v 1.4 2006-12-10 16:13:50 bacon Exp $
2006-12-09 11:50:08 +00:00
*/
#ifndef _ASE_COM_BUFFER_H_
#define _ASE_COM_BUFFER_H_
#include "resource.h"
#include "ase.h"
class ATL_NO_VTABLE CBuffer :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CBuffer, &CLSID_Buffer>,
public IDispatchImpl<IBuffer, &IID_IBuffer, &LIBID_ASELib>
{
2006-12-10 05:59:52 +00:00
public:
BSTR str;
2006-12-10 16:13:50 +00:00
BOOL PutValue (const TCHAR* val, SIZE_T len);
2006-12-09 11:50:08 +00:00
public:
CBuffer ();
~CBuffer ();
2006-12-09 12:01:26 +00:00
DECLARE_REGISTRY_RESOURCEID(IDR_BUFFER)
2006-12-09 11:50:08 +00:00
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CBuffer)
COM_INTERFACE_ENTRY(IBuffer)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
public:
STDMETHOD(get_Value)(/*[out, retval]*/ BSTR *pVal);
STDMETHOD(put_Value)(/*[in]*/ BSTR newVal);
};
#endif