SRL Archive - C/C++ Help and Tutorials

In need of getsource(of a page)


ShowerThoughts

2008-06-11 14:10:53

I have one in delphi from raymond but i really can't can't can't convert it to c++

Function TfrmDllForm.GetSource(Sender: TObject): string;
var
document: IHTMLDocument2;
docAll: IHTMLElementCollection;
Element: IHTMLElement;
Len : integer;
I : integer;
begin
document := WebBrowser1.Document as IHTMLDocument2;
if Assigned(document) then
begin
DocAll := document.all;
Len := docAll.length;
for I := 0 to Len - 1 do
begin;
Application.ProcessMessages;
Element := docAll.Item(I,0) as IHTMLElement;
if Element.tagName = "HTML" then Result := Result + Element.outerHTML;
end;
end;
end;

For the people who think why you still here? i have 4 hours left..

Hermpie

R0b0t1

2008-06-11 17:33:31

How do you only have four hours left?

Anyway, http://beej.us/guide/bgnet/output/html/multipage/index.html

ShowerThoughts

2008-06-12 09:47:56

I read the begginging of it and i get it much more :)

Could you explain
what a host is? Very advanced(start easy to advanced I HAVE to know it :))

R0b0t1

2008-07-02 15:48:06

A host is a daemon connected to the internet…