Article View: borland.public.cppbuilder.internet.web
Article #1060Re: Help with Delphi Translation
From: mike
Date: Mon, 26 Sep 2005 18:56
Date: Mon, 26 Sep 2005 18:56
81 lines
3888 bytes
3888 bytes
Remy,
Thanks for responding again and I am sorry I am just not getting this at
all. I am trying to use the IESniffer control from the AppControls from
UtilMind and I am having this major problem. I have purchased this from them
and have sent multiple messages to them for help and they just do not
respond, so I am stuck trying to get something to work that I have paid for
without any support.
If I include the mshtml.h I receive a whole bunch of duplicate declarations.
I do include a mshtml.hpp because if I don't then I don'tget anywhere using
the control.
Is there anyway that I could send you the control so you could see what I
mean in respect to trying to get this to work.
I am at a loss as to how to get it to work.
I really do appreciate the time you have spent trying to help me out.
Mike
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:43382c29$1@newsgroups.borland.com...
>
> "mike" <mfbrowne@earthlink.nnet> wrote in message
> news:4336bfa0$1@newsgroups.borland.com...
>
>> [C++ Warning] Unit1.cpp(45): W8037 Non-const function __stdcall
>> IWebBrowser::Get_Document(_di_IDispatch &) called for const object
>
> That is not an error. It is, however, caused by the function's Browser
> parameter being declared as 'const'. Try removing the 'const'.
>
> Also, you are not using the code I gave you. My code calls
> IWebBrowser2::get_Document(IDispatch**), not
> IWebBrowser2::Get_Document(_di_IDispatch&). Please copy-paste the code
> as-is.
>
>> [C++ Error] Unit1.cpp(45): E2064 Cannot initialize '_di_IDispatch &' with
>> 'IDispatch * *'
>>
>> [C++ Error] Unit1.cpp(45): E2342 Type mismatch in parameter
>> 'Get_Document_result' (wanted '_di_IDispatch &', got 'IDispatch * *')
>
> Those are side-effects of you not using the code I gave you.
>
>> [C++ Error] Unit1.cpp(50): E2316 'get_all' is not a member of
>> 'IHTMLDocument2'
>
> Yes, it is. In fact, it is the very first method declared in
> IHTMLDocument2:
>
> --- mshtml.h ---
>
> MIDL_INTERFACE("332c4425-26cb-11d0-b483-00c04fd90119")
> IHTMLDocument2 : public IHTMLDocument
> {
> public:
> virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_all(
> /* [out][retval] */ IHTMLElementCollection __RPC_FAR *__RPC_FAR
> *p) = 0;
> //...
> };
>
>
>> [C++ Error] Unit1.cpp(51): E2034 Cannot convert 'TVariant' to
>> 'OleVariant'
> <snip>
>
> The rest of the errors lead me to think that you are not using Microsoft's
> original HTML interfaces at all, but instead are accessing some
> VCL-specific
> interfaces instead. Had you been using Microsoft's interfaces directly,
> OleVariant would not be needed at all. You also would not be having
> problems with any of the _di_... typedefs or "xxx is not a member of ..."
> errors, either.
>
>
> Gambit
>
>
Technical Details
Message-ID:
<43384404@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<43359db7@newsgroups.borland.com> <4335b4c4$1@newsgroups.borland.com> <4336bfa0$1@newsgroups.borland.com> <43382c29$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,5d71e42a8af639c6 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "mike" <mfbrowne@earthlink.nnet> Newsgroups: borland.public.cppbuilder.internet.web References: <43359db7@newsgroups.borland.com> <4335b4c4$1@newsgroups.borland.com> <4336bfa0$1@newsgroups.borland.com> <43382c29$1@newsgroups.borland.com> Subject: Re: Help with Delphi Translation Date: Mon, 26 Sep 2005 14:56:41 -0400 Lines: 83 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.204.189.169 Message-ID: <43384404@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1127760900 68.204.189.169 (26 Sep 2005 11:55:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail