|
검색해서 겨우 방법은 찾았습니다...
클래스 정의하는 부분에 public IPersistPropertyBagImpl<CPPTest> , 추가해주고
BEGIN_COM_MAP <-> END_COM_MAP 사이에다 COM_INTERFACE_ENTRY(IPersistPropertyBag) 추가해주고
프로퍼티 추가하고 나서 아래 부분 추가해주었습니다.
BEGIN_PROP_MAP(CPPTest)
PROP_ENTRY("Value1", 1, CLSID_PPTest)
PROP_ENTRY("Value2", 2, CLSID_PPTest)
END_PROP_MAP()
그런데 아래와 같은 에러가 발생합니다.
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(852) : error C2039: 'm_bRequiresSave' : is not a member of 'CPPTest'
c:\data\work\test\propertytest\pptest.h(11) : see declaration of 'CPPTest'
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(848) : while compiling class-template member function 'long __thiscall ATL::IPersistPropertyBagImpl<class CPPTest>::IPersistPropertyBag_Load(struct IPropertyBag *,struct IErr
orLog *,struct ATL::ATL_PROPMAP_ENTRY *)'
ProPertyTest.cpp
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(852) : error C2039: 'm_bRequiresSave' : is not a member of 'CPPTest'
c:\data\work\test\propertytest\pptest.h(11) : see declaration of 'CPPTest'
c:\program files\microsoft visual studio\vc98\atl\include\atlcom.h(848) : while compiling class-template member function 'long __thiscall ATL::IPersistPropertyBagImpl<class CPPTest>::IPersistPropertyBag_Load(struct IPropertyBag *,struct IErr
orLog *,struct ATL::ATL_PROPMAP_ENTRY *)'
Generating Code...
제가 검색해본 대로하면 (몇개가 검색되었지만 저정도만 나왔네요..) 저런 에러가 발생합니다 .
뭐가 잘못된걸까요 ㅠㅠ
|