🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TCppWebBrower AutoFill functionality

#1421
From: Mitch McInelly
Date: Fri, 11 Feb 2005 21:37
41 lines
2445 bytes
Hi Gambit,

Thank you so much for your quick response!  I implemented your code into my 
app and it bombs with errors on three lines:

1)   Browser->Document->QueryInterface(IID_IHTMLDocument2,(LPVOID)&Doc);
       gives 'Could not find match for 
IUnknown::QueryInterface(const_GUID,void *);'  doesn't seem to like the 
IID_IHTMLDocument2 parameter?

2)    All->get_item(item, index, &Disp);
        gives 'get_item is not a member of IHTMLElementCollection'

3)   Disp->QueryInterface(IID_IHTMLInputTextElement,(LPVOID)&TextInput);
      gives 'Could not find match for 
IUnknown::QueryInterface(const_GUID,void *);'

Do you suppose that it's the placement of the headers in my source?

Mitch McInelly


"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:420d079e@newsgroups.borland.com...
>
> "Mitch McInelly" <mitch@agencysoftware.com> wrote in message
> news:420cc1f5@newsgroups.borland.com...
>
>> I've tried scraping the web page into a memo, changing the
>> "value=" properties of the fields, and then sending back to
>> the browser.
>
> Use the browser's DOM interfaces to query and update the values directly.
> Once the page is fully loaded, you can query the Document property for the
> IHTMLDocument2 interface and go from there.  IHTMLDocument2 and related
> interfaces are documented at MSDN.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <420d2623$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <420cc1f5@newsgroups.borland.com> <420d079e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,f1eac53c40f0896b
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Mitch McInelly" <mitch@agencysoftware.com>
From: "Mitch McInelly" <mitch@agencysoftware.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <420cc1f5@newsgroups.borland.com> <420d079e@newsgroups.borland.com>
Subject: Re: TCppWebBrower AutoFill functionality
Date: Fri, 11 Feb 2005 13:37:30 -0800
Lines: 43
Organization: Agency Software, Inc.
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: 207.88.115.45
Message-ID: <420d2623$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108157987 207.88.115.45 (11 Feb 2005 13:39:47 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail