🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #241

Re: Converting HTML page from TCppWebBrowser into Image

#241
From: Trevor Keegan
Date: Tue, 06 Feb 2007 02:39
54 lines
2808 bytes
Hello Eduardo,

Thanks....you have just made me feel stupid in the nicest way :-D

Regards
Trevor Keegan
"Eduardo Jauch" <eduardo.jauch@gmail.com> wrote in message 
news:45c7e8a8$1@newsgroups.borland.com...
> Trevor Keegan escreveu:
>> Hi,
>>
>> I have been looking at some code from that describes how to convert a 
>> HTML page into an image (http://starkravingfinkle.org/blog/2004/09/). 
>> The problem is before I get started, I see code like:
>> IHTMLDocument2 * pDoc = ....;
>> IHTMLELEMENT * pBodyElement = 0
>> HRESULT hr = pDoc-&gt;get_body(&amp;pBodyElement);
>> if( SUCCEED(hr))
>> {
>>   IHTMLElement * pBody = 0;
>>   hr = pBodyElem - &gt;QueryInterface( IID_IHTMLBodyElement, 
>> (void**)&amp;bBody );
>> :
>> :
>> }
>>
>> The problem is I do not know what variables like amp and gt should be.
>>
>> I would also like to understand what the purpose of things like pDoc-&gt 
>> are (I would appear to be getting a pointer to something).....I get the 
>> feeling that there should be another way of writing this.
>> HRESULT hr = pDoc-&gt;get_body(&amp;pBodyElement);
>>   hr = pBodyElem - &gt;QueryInterface( IID_IHTMLBodyElement, 
>> (void**)&amp;bBody );
>>
>> Regards
>> Trevor Keegan
>
> These are NOT variables. Are HTML codes to sp�cial caracters like "�"
>
> In this case, the correct code is something like this:
>
> IHTMLDocument2 * pDoc = NULL;
> IHTMLELEMENT * pBodyElement = NULL;
> HRESULT hr = pDoc->get_body( pBodyElement );
> if( SUCCEED(hr) )
> {
>   IHTMLElement * pBody = NULL;
>   hr = pBodyElem->QueryInterface( IID_IHTMLBodyElement, (void**)bBody );
> }
>
> You may have problems with the HTML you are viewing...
>
> :) 
Technical Details
Message-ID: <45c7ea07@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45c7e3f6@newsgroups.borland.com> <45c7e8a8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4384ebb9896c72c9
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII
Reply-To: "Trevor Keegan" <tkeegan@ealink.com>
From: "Trevor Keegan" <tkeegan@ealink.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <45c7e3f6@newsgroups.borland.com> <45c7e8a8$1@newsgroups.borland.com>
Subject: Re: Converting HTML page from TCppWebBrowser into Image
Date: Tue, 6 Feb 2007 10:39:09 +0800
Lines: 56
Organization: EA-Link System Sdn Bhd
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 219.95.95.11
Message-ID: <45c7ea07@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170729479 219.95.95.11 (5 Feb 2007 18:37:59 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail