|
|
|
date: Tue, 18 Mar 2008 18:26:33 -0700 (PDT),
group: microsoft.public.inetsdk.programming.urlmonikers
back
Re: using Passthruapp with IE
On Mar 19, 7:04 am, "Igor Tandetnik" wrote:
> wrote in message
>
> news:d8a01530-8902-4be1-88eb-847f47648baf@s8g2000prg.googlegroups.com
>
> > How to disable the PassthruAPP GUI (window that is displayed) & show
> > the page as in Internet Explorer.
>
> PassthruAPP itself doesn't have any GUI. My sample project that
> demonstrates the APP does. You'll need to study and understand the
> sample, then you'll realize which parts are the meat and which are just
> for show.
> --
> With best wishes,
> Igor Tandetnik
>
> With sufficient thrust, pigs fly just fine. However, this is not
> necessarily a good idea. It is hard to be sure where they are going to
> land, and it could be dangerous sitting under them as they fly
> overhead. -- RFC 1925
Hi Igor,
I am new to APP, so it is bit difficult to digest the code.
what I understood from the code is that we take the IwebBrowser2
pointer of the dialog window and call the navigate method, then we get
the page in the dialog window.
What I tried with it is -- I removed the dialog window code & started
an instance of IE within that code . I used the following code.
hr = CoCreateInstance (CLSID_InternetExplorer, NULL, CLSCTX_SERVER,
IID_IWebBrowser2, (LPVOID*)&pWebBrowser);
with the above statement i got the IWebBrowser2 pointer of the
Internet Explorer window and then used it to navigate to a URL.
The naviigation was succcessful but the code didnt gave me any http
request or response details .
I monitored the BeginningTransaction method of the APP, it was never
called for the navigation made by this instance of IE.
So anyway to solve the issue ?
Please help !!!
Thanks & eagerly waiting your reply.
Hitesh.
date: Wed, 19 Mar 2008 11:37:05 -0700 (PDT)
author: unknown
Re: using Passthruapp with IE
genius1232@yahoo.co.in wrote:
> I am new to APP, so it is bit difficult to digest the code.
> what I understood from the code is that we take the IwebBrowser2
> pointer of the dialog window and call the navigate method, then we get
> the page in the dialog window.
This is not part of the APP - it's just there to generate some HTTP
requests for APP to intercept.
> What I tried with it is -- I removed the dialog window code & started
> an instance of IE within that code . I used the following code.
>
> hr = CoCreateInstance (CLSID_InternetExplorer, NULL, CLSCTX_SERVER,
> IID_IWebBrowser2, (LPVOID*)&pWebBrowser);
This creates a standalone instance of Internet Explorer as a separate
process. An APP is registered per-process: an APP you register in your
application has no effect on that IE instance (which, again, runs in a
separate process). You must register your APP from inside IE's process.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
date: Wed, 19 Mar 2008 14:45:11 -0400
author: Igor Tandetnik
|
|