// ProfileSection.h : CProfileSection \82Ì\90é\8c¾
-#ifndef __PROFILESECTION_H_
-#define __PROFILESECTION_H_
+#pragma once
#include "resource.h" // \83\81\83C\83\93 \83V\83\93\83{\83\8b
/////////////////////////////////////////////////////////////////////////////
// CProfileSection
-class ATL_NO_VTABLE CProfileSection :
+class ATL_NO_VTABLE CProfileSection :
public CComObjectRootEx<CComSingleThreadModel>,
-// public CComCoClass<CProfileSection, &CLSID_ProfileSection>,
- public ISupportErrorInfo,
+ public CComCoClass<CProfileSection, &CLSID_ProfileSection>,
+ public ISupportErrorInfoImpl<&IID_ISeraphyScriptTools_ProfileSection>,
public IDispatchImpl<ISeraphyScriptTools_ProfileSection, &IID_ISeraphyScriptTools_ProfileSection, &LIBID_SERAPHYSCRIPTTOOLSLib>
{
public:
{
}
-DECLARE_REGISTRY_RESOURCEID(IDR_PROFILESECTION)
+ //DECLARE_REGISTRY_RESOURCEID(IDR_PROFILESECTION)
-DECLARE_PROTECT_FINAL_CONSTRUCT()
+ DECLARE_PROTECT_FINAL_CONSTRUCT()
-BEGIN_COM_MAP(CProfileSection)
- COM_INTERFACE_ENTRY(ISeraphyScriptTools_ProfileSection)
- COM_INTERFACE_ENTRY(IDispatch)
- COM_INTERFACE_ENTRY(ISupportErrorInfo)
-END_COM_MAP()
+ BEGIN_COM_MAP(CProfileSection)
+ COM_INTERFACE_ENTRY(ISeraphyScriptTools_ProfileSection)
+ COM_INTERFACE_ENTRY(IDispatch)
+ COM_INTERFACE_ENTRY(ISupportErrorInfo)
+ END_COM_MAP()
-// ISupportsErrorInfo
- STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
-
-// ISeraphyScriptTools_ProfileSection
+ // ISeraphyScriptTools_ProfileSection
public:
STDMETHOD(GetKeyNames)(/*[out]*/VARIANT* pVal);
STDMETHOD(GetValue)(/*[in]*/VARIANT idx,/*[in,optional]*/VARIANT def,/*[out,retval]*/VARIANT* pVal);
ATL::CString m_szProfilePath;
ATL::CString m_szSectionName;
};
-
-#endif //__PROFILESECTION_H_