Microsoft Developer Network > Página Inicial dos Fóruns > Visual C++ General > Parsing HTML without Using the Browser Control
Fazer uma PerguntaFazer uma Pergunta
 

RespondidoParsing HTML without Using the Browser Control

Respostas

Todas as Respostas

  • quarta-feira, 4 de novembro de 2009 5:44Brian MuthMVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Codu posted code that does exactly that in your previous thread. So why are you asking again?
  • quarta-feira, 4 de novembro de 2009 6:15Naveen HS Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Hi Brian,

    Thanks for the response.

    Yes Codu have given a wonderful solution , it worked fine i implemented the same.
    There i was trying to extract the content from the table from a static web page (downloaded webpage) , here now i am trying to parse a dynamic webpage where we pass a webpage address which can be parsed.

    if i pass a link some "www.example.com/table.html"  as input i want to get the html source code of this webpage without loading that page in my dialog.  Is there anyway i can get the source code of the web page without loading ?
    Please suggest me tips with which i can proceed this task.

    Thanking you,
    Naveen HS.





  • quarta-feira, 4 de novembro de 2009 11:11carly3 Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    It's an old C++ Win32/COM FAQ (ask on Win32 ng or any COM ng)
  • quarta-feira, 4 de novembro de 2009 17:06Brian MuthMVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
    I see. Codu's code shows you how to parse the HTML page. To fetch the page, you can use InternetReadFile(). You can read up more about the WinINet API here.