Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages
Started by Timon Meyer
Thu, 04 Nov 2004 15:54
IHTMLElementRender not available under CppBuilder6?
Author: Timon Meyer
Date: Thu, 04 Nov 2004 15:54
Date: Thu, 04 Nov 2004 15:54
26 lines
1670 bytes
1670 bytes
Hello, I have folling code inside one of my projects: IHTMLElement *pElement = (IHTMLElement *) NULL; IHTMLElementRender *pRender = (IHTMLElementRender *) NULL; // <-- causes linker error After compilation I got an linker error: [Linker Error] Unresolved external '_IID_IHTMLElementRender' referenced from D:\TTEST\UNIT1.OBJ I found out, that IHTMLElement is declared in mshtml.h which I included, but IHTMLElementRender is not! If I look into the mshtml.h which comes with C++ BuilderX the IHTMLElementRender is declared inside, but I do need the implementation of the IHTMLElementRender also such as mshtml.lib, or mshtml.pas or something like that. How can I make now my CppBuilder6 access the IHTMLElementRender interface??? Is there an update available? Or can I extract from a DLL? Thanks for any help!
Re: IHTMLElementRender not available under CppBuilder6?
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads