Article View: borland.public.cppbuilder.nativeapi
Article #13331Re: BHO question
From: Remy Lebeau (TeamB)
Date: Thu, 16 Oct 2003 18:11
Date: Thu, 16 Oct 2003 18:11
24 lines
2115 bytes
2115 bytes
"Martin C" <martinc@aol.com> wrote in message
news:3f8ed9f0$1@newsgroups.borland.com...
> I am trying to retrieve the url in my bho project under the
> DISPID_BEFORENAVIGATE2 IE event, but I really
> can't find any documentation or help on the net to do so
That event is fully documented by Microsoft:
DWebBrowserEvents2::BeforeNavigate2 Event
http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/dwebbrowserevents2/beforenavigate2.asp
> so can you please tell me how I can get the url under
> DISPID_BEFORENAVIGATE2.
TVariant vURL(pDispParams->rgvarg[5].pvarVal);
If you need the URL in AnsiString/WideString format instead, then you can
assign the TVariant to AnsiString/WideString afterwards.
Gambit
Technical Details
Message-ID:
<3f8edeb3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,15b7dd6889830f4f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-16 11:10:39 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f84957c@newsgroups.borland.com> <3f84a0b8@newsgroups.borland.com> <3f88b9db@newsgroups.borland.com> <3f88be72$1@newsgroups.borland.com> <3f897b9a@newsgroups.borland.com> <3f89c56f$1@newsgroups.borland.com> <3f8af683@newsgroups.borland.com> <3f8af95a$3@newsgroups.borland.com> <3f8affad@newsgroups.borland.com> <3f8b009f$3@newsgroups.borland.com> <3f8ed9f0$1@newsgroups.borland.com> Subject: Re: BHO question Date: Thu, 16 Oct 2003 11:11:04 -0700 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.75 Message-ID: <3f8edeb3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066327731 67.22.137.75 (16 Oct 2003 11:08:51 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail