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
[23872] CppWebBrowser <-- 사용방법좀 알려주세여 ^-^;
지영 [hoon1577] 798 읽음    2003-01-25 13:05
#include <mshtml.h>
void __fastcall TForm1::BitBtn1Click(TObject *Sender)
{
IDispatch * Document;
  Document = CppWebBrowser1->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->Add(HTML);
  Memo1->Lines->Add(Text);
}

resource 에 올라온 내용인데 ..
hr = Document->QueryInterface(IID_IHTMLDocument2,(void**)&pHTMLDocument );
에서 에러가 나내염 ㅠㅠ
Access violatoion at address 00401C6A in module 이라는 에러가 떠염 ㅠㅠ
IID_IHTMLDocument2,(void**)&pHTMLDocument <-- 여기에 이상한 값이 나오는데
여기에 형식이 틀렸나요 ? ^^;;  알려주세요~ ^^;
그럼 오늘도 좋은 하루 보내세요~ ^^


+ -

관련 글 리스트
23872 CppWebBrowser <-- 사용방법좀 알려주세여 ^-^; 지영 798 2003/01/25
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.