Article View: borland.public.cppbuilder.internet.web
Article #1626Re: IHTMLElementRender not available under CppBuilder6?
From: Remy Lebeau (TeamB)
Date: Thu, 04 Nov 2004 17:47
Date: Thu, 04 Nov 2004 17:47
66 lines
2814 bytes
2814 bytes
"Timon Meyer" <timon@mustek.de> wrote in message
news:418a50d3@newsgroups.borland.com...
> After compilation I got an linker error:
>
> [Linker Error] Unresolved external '_IID_IHTMLElementRender'
> referenced from D:\TTEST\UNIT1.OBJ
IID_IHTMLElementRender doesn't even exist in BCB6 at all. It is not even
declared in any of the header files. Did you add it to your code manually?
> How can I make now my CppBuilder6 access the IHTMLElementRender
interface???
You will have to add it to your code manually:
--- IHTMLElementRender.h ---
#include <mshtml.h>
#ifndef __IHTMLElementRender_FWD_DEFINED__
#define __IHTMLElementRender_FWD_DEFINED__
typedef interface IHTMLElementRender IHTMLElementRender;
#endif /* __IHTMLElementRender_FWD_DEFINED__ */
#ifndef __IHTMLElementRender_INTERFACE_DEFINED__
#define __IHTMLElementRender_INTERFACE_DEFINED__
/* interface IHTMLElementRender */
/* [uuid][unique][object] */
EXTERN_C const IID IID_IHTMLElementRender;
MIDL_INTERFACE("3050f669-98b5-11cf-bb82-00aa00bdce0b")
IHTMLElementRender : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE DrawToDC(
/* [in] */ HDC hDC) = 0;
virtual HRESULT STDMETHODCALLTYPE SetDocumentPrinter(
/* [in] */ BSTR bstrPrinterName,
/* [in] */ HDC hDC) = 0;
};
#endif /* __IHTMLElementRender_INTERFACE_DEFINED__ */
--- IHTMLElementRender.cpp ---
#include "IHTMLElementRender.h"
const IID IID_IHTMLElementRender = {0x3050F669, 0x98B5, 0x11Cf, {0xBB,
0x82, 0x00, 0xAA, 0x00, 0xBD, 0xCE, 0x0B}};
Add IHTMLElementRender.cpp to your project, and then include
IHTMLElementRender.h into your code where needed.
> Is there an update available? Or can I extract from a DLL?
No, and no.
Gambit
Technical Details
Message-ID:
<418a6ae4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<418a50d3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,b9bbd169530212f2 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <418a50d3@newsgroups.borland.com> Subject: Re: IHTMLElementRender not available under CppBuilder6? Date: Thu, 4 Nov 2004 09:47:22 -0800 Lines: 68 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <418a6ae4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099590372 68.69.17.41 (4 Nov 2004 09:46:12 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!transit.nntp.hccnet.nl!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail