-
Notifications
You must be signed in to change notification settings - Fork 5
/
TextExtractor.h
40 lines (31 loc) · 1.04 KB
/
TextExtractor.h
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
36
37
38
39
40
// TextExtractor.h : Declaration of the CTextExtractor
#ifndef __TEXTEXTRACTOR_H_
#define __TEXTEXTRACTOR_H_
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// CTextExtractor
class ATL_NO_VTABLE CTextExtractor :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CTextExtractor, &CLSID_TextExtractor>,
public ISupportErrorInfo,
public IDelegatingDispImpl<ITextExtractor>
{
public:
CTextExtractor()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_TEXTEXTRACTOR)
DECLARE_GET_CONTROLLING_UNKNOWN()
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CTextExtractor)
COM_INTERFACE_ENTRY(ITextExtractor)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(ISupportErrorInfo)
END_COM_MAP()
// ISupportsErrorInfo
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
// ITextExtractor
public:
STDMETHOD(ExtractText)(/*[in]*/ BSTR fileName, /*[in]*/ long maxLength, /*[out, retval]*/ BSTR * fileText);
};
#endif //__TEXTEXTRACTOR_H_