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
[27329] Re:Re:TCppWebBrower에서 웹 HTML과 텍스트를 추출 하는 소스입니다.
나태효 [] 1924 읽음    2003-09-27 15:14
답변에 심심한 감사 드립니다.
헌데..
  IHTMLElement *HTMLElement;
여기서 에러 나네요..
에러 내용은..
  [C++ Error] main.cpp(30): E2451 Undefined symbol 'IHTMLElement'
  [C++ Error] main.cpp(30): E2451 Undefined symbol 'HTMLElement'
  [C++ Error] main.cpp(31): E2451 Undefined symbol 'IHTMLDocument2'
  [C++ Error] main.cpp(31): E2451 Undefined symbol 'pHTMLDocument'
  [C++ Error] main.cpp(36): E2451 Undefined symbol 'IID_IHTMLDocument2'
  [C++ Error] main.cpp(36): E2285 Could not find a match for 'IUnknown::QueryInterface(undefined,undefined)'
  [C++ Warning] main.cpp(51): W8004 'Document' is assigned a value that is never used

입니다.

뭘 include 해야 에러가 없어 질까요..? @ㅁ@




이점한 님이 쓰신 글 :
: void __fastcall TForm1::CppWebDocumentComplete(TObject *Sender,
:       LPDISPATCH pDisp, Variant *URL)
: {
:   Edit1->Text = CppWeb->LocationURL;
:   IDispatch * Document;
:   Document = CppWeb->Document;
:   IHTMLElement* HTMLElement;
:   IHTMLDocument2* pHTMLDocument;
:   HRESULT hr;
:
:   WideString HTML; // <- w_char* 스트링입니다.
:   WideString Text;
:   hr = Document->QueryInterface(IID_IHTMLDocument2,(void**)&pHTMLDocument );
:   if ( hr == S_OK )
:     {
:       hr = pHTMLDocument->get_body(&HTMLElement);
:       if ( hr == S_OK )
:         {
:           HTMLElement->get_innerHTML(&HTML);
:           HTMLElement->get_innerText(&Text);
:           HTMLElement->Release();
:         }
:       pHTMLDocument->Release();
:     }
:   Memo1->Lines->Clear();
:   Memo1->Lines->Add(HTML);
: //  Memo1->Lines->Add(Text);
: }
:
:
: 나태효 님이 쓰신 글 :
: : TCppWebBrower 컴퍼넌트를 이용해 간단히 만든 브라우져 옆에 메모장을 달았습니다..
: : 여기에 지금 브라우져에 표시된 html파일의 소스를 표시 하려면 어떻게 해야 하는지요..?
: : Memo1->Text = TCppWebBrowser1->????
: :
: : 도움 주시면 감사하겠습니다.

+ -

관련 글 리스트
27308 TCppWebBrower에 표시된 웹페이지의 소스를 보려면..? 나태효 852 2003/09/25
27310     Re:TCppWebBrower에서 웹 HTML과 텍스트를 추출 하는 소스입니다. 이점한 1699 2003/09/25
27329         Re:Re:TCppWebBrower에서 웹 HTML과 텍스트를 추출 하는 소스입니다. 나태효 1924 2003/09/27
27348             Re:Re:Re:답변이 늦었네요 ^^; 이점한 1844 2003/09/30
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.