Article View: borland.public.cppbuilder.internet.web
Article #302Re: Invoking the events when filling in fields using TCppWebBrowser
From: Trevor Keegan
Date: Fri, 23 Feb 2007 09:58
Date: Fri, 23 Feb 2007 09:58
26 lines
2180 bytes
2180 bytes
Hello Remy
OK....I have imported the library using:
tlibimp -Hs- -Hr- -Fe- \windows\system32\mshtml.tlb......And I can see that
it has created the IHTMLElement3 interface for me :)
The problem that I have now is that code that was compiling ok....now does
not compile....in particular the compiler now complains that the put_value
is not a member of the IHTMLInputTextElement......but it is according to
http://msdn.microsoft.com/workshop/browser/mshtml/reference/ifaces/inputtextelement/inputtextelement.asp
TComInterface<IHTMLInputTextElement> TextInput;
Disp->QueryInterface( IID_IHTMLInputTextElement,
(LPVOID*)&TextInput );
if( TextInput )
{
//Set the value in the field
TextInput->put_value( WideString( Value ) );
}
The problem appears to be now that I have 2 mshtml.h files. The original
one and the new one, is this correct?
Regards
Trevor Keegan
Technical Details
Message-ID:
<45debab4@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45dcef87$1@newsgroups.borland.com> <45dcf9ff$1@newsgroups.borland.com> <45dd392b@newsgroups.borland.com> <45dd52cc$1@newsgroups.borland.com> <45de9306@newsgroups.borland.com> <45deabf4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,41646948ec07ae8b 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 References: <45dcef87$1@newsgroups.borland.com> <45dcf9ff$1@newsgroups.borland.com> <45dd392b@newsgroups.borland.com> <45dd52cc$1@newsgroups.borland.com> <45de9306@newsgroups.borland.com> <45deabf4@newsgroups.borland.com> Subject: Re: Invoking the events when filling in fields using TCppWebBrowser Date: Fri, 23 Feb 2007 17:58:41 +0800 Lines: 28 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.19.195 Message-ID: <45debab4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172224692 219.95.19.195 (23 Feb 2007 01:58:12 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail