C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[47111] ATL COM에서 PARAM 읽어 오는 방법 중 에러가 발생했습니다.
초보 [] 1350 읽음    2006-11-16 17:20
검색해서 겨우 방법은 찾았습니다...

클래스 정의하는 부분에     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...

제가 검색해본 대로하면 (몇개가 검색되었지만 저정도만 나왔네요..) 저런 에러가 발생합니다 .
뭐가 잘못된걸까요 ㅠㅠ

+ -

관련 글 리스트
47111 ATL COM에서 PARAM 읽어 오는 방법 중 에러가 발생했습니다. 초보 1350 2006/11/16
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.