Visual C++ Developer Center > Visual C++ Forums > Visual C++ General > Parsing HTML without Using the Browser Control
Ask a questionAsk a question
 

AnswerParsing HTML without Using the Browser Control

Answers

All Replies

  • Wednesday, November 04, 2009 5:44 AMBrian MuthMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Codu posted code that does exactly that in your previous thread. So why are you asking again?
  • Wednesday, November 04, 2009 6:15 AMNaveen HS Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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.





  • Wednesday, November 04, 2009 11:11 AMcarly3 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It's an old C++ Win32/COM FAQ (ask on Win32 ng or any COM ng)
  • Wednesday, November 04, 2009 5:06 PMBrian MuthMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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.