OSDN Git Service

UNICODEビルド、X64ビルドでコンパイルエラーが発生しないように修正した。
[seraphyscrtools/SeraphyScriptTools.git] / ProfileSection.h
1 // ProfileSection.h : CProfileSection \82Ì\90é\8c¾
2
3 #ifndef __PROFILESECTION_H_
4 #define __PROFILESECTION_H_
5
6 #include "resource.h"       // \83\81\83C\83\93 \83V\83\93\83{\83\8b
7
8 /////////////////////////////////////////////////////////////////////////////
9 // CProfileSection
10 class ATL_NO_VTABLE CProfileSection : 
11         public CComObjectRootEx<CComSingleThreadModel>,
12 //      public CComCoClass<CProfileSection, &CLSID_ProfileSection>,
13         public ISupportErrorInfo,
14         public IDispatchImpl<ISeraphyScriptTools_ProfileSection, &IID_ISeraphyScriptTools_ProfileSection, &LIBID_SERAPHYSCRIPTTOOLSLib>
15 {
16 public:
17         CProfileSection()
18         {
19         }
20
21 DECLARE_REGISTRY_RESOURCEID(IDR_PROFILESECTION)
22
23 DECLARE_PROTECT_FINAL_CONSTRUCT()
24
25 BEGIN_COM_MAP(CProfileSection)
26         COM_INTERFACE_ENTRY(ISeraphyScriptTools_ProfileSection)
27         COM_INTERFACE_ENTRY(IDispatch)
28         COM_INTERFACE_ENTRY(ISupportErrorInfo)
29 END_COM_MAP()
30
31 // ISupportsErrorInfo
32         STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
33
34 // ISeraphyScriptTools_ProfileSection
35 public:
36         STDMETHOD(GetKeyNames)(/*[out]*/VARIANT* pVal);
37         STDMETHOD(GetValue)(/*[in]*/VARIANT idx,/*[in,optional]*/VARIANT def,/*[out,retval]*/VARIANT* pVal);
38         STDMETHOD(get_Value)(/*[in]*/VARIANT idx, /*[out, retval]*/ VARIANT *pVal);
39         STDMETHOD(put_Value)(/*[in]*/VARIANT idx, /*[in]*/ VARIANT newVal);
40         ATL::CString m_szProfilePath;
41         ATL::CString m_szSectionName;
42 };
43
44 #endif //__PROFILESECTION_H_