-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSampleObj.h
More file actions
35 lines (27 loc) · 871 Bytes
/
SampleObj.h
File metadata and controls
35 lines (27 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// SampleObj.h : Declaration of the CSampleObj
#ifndef __SAMPLEOBJ_H_
#define __SAMPLEOBJ_H_
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CSampleObj
class ATL_NO_VTABLE CSampleObj :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CSampleObj, &CLSID_SampleObj>,
public IDispatchImpl<ISampleObj, &IID_ISampleObj, &LIBID_OUTPROCCOMLib>
{
public:
CSampleObj()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_SAMPLEOBJ)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CSampleObj)
COM_INTERFACE_ENTRY(ISampleObj)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
// ISampleObj
public:
STDMETHOD(get_get_add)(/*[in]*/ int a, /*[in]*/ int b, /*[out, retval]*/ long *pVal);
STDMETHOD(put_get_add)(/*[in]*/ int a, /*[in]*/ int b, /*[in]*/ long newVal);
};
#endif //__SAMPLEOBJ_H_