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
[4743] MSXML.DLL을 Import Typelibrary 할 경우...
이강건 [] 4362 읽음    2001-01-03 00:00
안녕하세요. 이강건입니다.

BCB에서 XML을 사용하려고 합니다.
델파이에서처럼 Project메뉴의 Import Type Library를 이용하여 MSXML.DLL을 임포트하는데, 컴파일시 에러가 발생합니다.

자세히 보니, 프로퍼티에서 사용하는 함수가 인자를 받더군요.
즉, 다음과 같이 프로퍼티가 선언되어 있고...

  __property Msxml_tlb::IXMLElement2Ptr ={ read=Get_root };
  __property long readyState={ read=Get_readyState };
  __property BSTR version={ read=Get_version };
  __property BSTR doctype={ read=Get_doctype };


해당 함수가 아래처럼 정의되어 있습니다.

  Msxml_tlb::IXMLElement2Ptr __fastcall Get_root(Msxml_tlb::IXMLElement2Ptr* p)
  {
    return GetDefaultInterface()->get_root(p/*[out,retval]*/);
  }

  long __fastcall Get_readyState(long* pl/*[out,retval]*/)
  {
    return GetDefaultInterface()->get_readyState(pl/*[out,retval]*/);
  }

그러니까 인자를 받는 함수들이지요.

프로퍼티의 Get메쏘드로 오는 함수가 인자를 가질 수 있습니까?


위를 컴파일할때 나는 에러는 다음과 같습니다.

  __property Msxml_tlb::IXMLElement2Ptr ={ read=Get_root };
        -> Declaration terminated incorrectly.

  __property long readyState={ read=Get_readyState };
  __property BSTR version={ read=Get_version };
  __property BSTR doctype={ read=Get_doctype };
        -> Parameter mismatch in read access specifier of property readyState(...)

그럼 도움을 기다리겠습니다.
이만...
꾸벅~

+ -

관련 글 리스트
4743 MSXML.DLL을 Import Typelibrary 할 경우... 이강건 4362 2001/01/03
4755     RE: 안되는걸로 알고 있습니당. thomamin 3359 2001/01/04
4757         Re:RE: 안되는걸로 알고 있습니당. -> 되는 데요! 이강건 3372 2001/01/04
4759             Re:Re:RE: 안되는걸로 알고 있습니당. -> 되는 데요! -> 음...좀 틀린데요 thomamin 3366 2001/01/04
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.