🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Converting HTML page from TCppWebBrowser into Image

#435
From: Trevor Keegan
Date: Tue, 06 Feb 2007 02:13
28 lines
1834 bytes
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->get_body(&pBodyElement);
if( SUCCEED(hr))
{
  IHTMLElement * pBody = 0;
  hr = pBodyElem - >QueryInterface( IID_IHTMLBodyElement, 
(void**)&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->get_body(&pBodyElement);
  hr = pBodyElem - >QueryInterface( IID_IHTMLBodyElement, 
(void**)&bBody );

Regards
Trevor Keegan 
Technical Details
Message-ID: <45c7e3f6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4384ebb9896c72c9,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Trevor Keegan" <tkeegan@ealink.com>
From: "Trevor Keegan" <tkeegan@ealink.com>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Converting HTML page from TCppWebBrowser into Image
Date: Tue, 6 Feb 2007 10:13:18 +0800
Lines: 30
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; Original
NNTP-Posting-Host: 219.95.95.11
Message-ID: <45c7e3f6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170727926 219.95.95.11 (5 Feb 2007 18:12:06 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail