qse/ase/com/Buffer.h

41 lines
761 B
C
Raw Normal View History

2006-12-09 11:50:08 +00:00
/*
2007-04-22 07:49:38 +00:00
* $Id: Buffer.h,v 1.7 2007-04-22 07:47:15 bacon Exp $
2007-02-03 10:52:36 +00:00
*
* {License}
2006-12-09 11:50:08 +00:00
*/
#ifndef _ASE_COM_BUFFER_H_
#define _ASE_COM_BUFFER_H_
#include "resource.h"
2007-03-24 05:18:32 +00:00
#include "asecom.h"
2006-12-09 11:50:08 +00:00
class ATL_NO_VTABLE CBuffer :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CBuffer, &CLSID_Buffer>,
2007-04-22 07:49:38 +00:00
public IDispatchImpl<IBuffer, &IID_IBuffer, &LIBID_ASECOM>
2006-12-09 11:50:08 +00:00
{
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