41 lines
761 B
C
41 lines
761 B
C
|
/*
|
||
|
* $Id: Buffer.h,v 1.3 2007/04/30 06:04:43 bacon Exp $
|
||
|
*
|
||
|
* {License}
|
||
|
*/
|
||
|
|
||
|
#ifndef _ASE_COM_BUFFER_H_
|
||
|
#define _ASE_COM_BUFFER_H_
|
||
|
|
||
|
#include "resource.h"
|
||
|
#include "asecom.h"
|
||
|
|
||
|
class ATL_NO_VTABLE CBuffer :
|
||
|
public CComObjectRootEx<CComSingleThreadModel>,
|
||
|
public CComCoClass<CBuffer, &CLSID_Buffer>,
|
||
|
public IDispatchImpl<IBuffer, &IID_IBuffer, &LIBID_ASECOM>
|
||
|
{
|
||
|
public:
|
||
|
BSTR str;
|
||
|
BOOL PutValue (const TCHAR* val, SIZE_T len);
|
||
|
|
||
|
public:
|
||
|
CBuffer ();
|
||
|
~CBuffer ();
|
||
|
|
||
|
DECLARE_REGISTRY_RESOURCEID(IDR_BUFFER)
|
||
|
|
||
|
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
|