Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving HTML Source Code using CHtmlView

Status
Not open for further replies.

BrianJH

Programmer
Joined
May 26, 2003
Messages
26
Location
US
I am creating a project that requires me to get the source code off of a web page. Of all the C++ books I have, the most any of them tell me is that I have to use CHtmlView's GetHtmlDocument which uses the IDispatch interface, then use the IDispatch finction Invoke(...) to obtain the source. I cannot find proper documentation on how to implement the IDispatch interface and retrieve the source code from the document.

CHtmlView myview;

myview.Navigate("
IDispatch* pdispatch = myview.GetHtmlDocument();

pdispatch->invoke(???...)//THIS IS WHERE I HAVE TROUBLE

lease Please help if you can!

-Brian
 
>> tell me is that I have to use CHtmlView's GetHtmlDocument

That is so wrong. There are a thousand ways, ok maybe only hundreds, ok but there are a lot of different ways to do that. [lol]

Take a look at the SDK for CHttpConnection and CHttpFile


-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top