Board index » cppbuilder » TCppWebBrowser

TCppWebBrowser


2004-01-21 09:00:52 AM
cppbuilder103
Hi.
TCppWebBrowser purpose is to allow to place IE window on the form and
handling it's events. But what I want is that instead of the IE window will
be inside the form, I will be able to handle events of an external IE
window (self working process of IE executable).
The purpose of my program is to be some kind of Internet Explorer plug-in
that listen to download request and than doing some manipulation to the
downloading data.
Thanks in Advance,
David
 
 

Re:TCppWebBrowser

"David" < XXXX@XXXXX.COM >wrote in message
Quote
TCppWebBrowser purpose is to allow to place IE window on
the form and handling it's events. But what I want is that instead
of the IE window will be inside the form, I will be able to handle
events of an external IE window (self working process of IE
executable).
For what you ask, you need to hook into IE directly, such as with a Browser
Helper Object (BOH).
Quote
The purpose of my program is to be some kind of Internet Explorer
plug-in that listen to download request and than doing some
manipulation to the downloading data.
You cannot manipulate the data while it is actually downloading. For that,
you should not use TCppWebBrowser (or a BOH) at all, just download the data
yourself manually via an HTTP component.
Gambit
 

Re:TCppWebBrowser

Quote
For what you ask, you need to hook into IE directly, such as with a
Browser
Helper Object (BOH).
Remy, you're the first person to tell me about this BHO. Can you direct me
to info about this BHO thing ?
Quote
You cannot manipulate the data while it is actually downloading
You're right. What I meant is that my program should listen to IE download
request and than obtain the link to this data, and finally download this
link with my program and not with IE.
Thanks again,
David
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >כת?
בהודעה:400dd468$ XXXX@XXXXX.COM ...
Quote

"David" < XXXX@XXXXX.COM >wrote in message
news:400dcf45$ XXXX@XXXXX.COM ...

>TCppWebBrowser purpose is to allow to place IE window on
>the form and handling it's events. But what I want is that instead
>of the IE window will be inside the form, I will be able to handle
>events of an external IE window (self working process of IE
>executable).

For what you ask, you need to hook into IE directly, such as with a
Browser
Helper Object (BOH).

>The purpose of my program is to be some kind of Internet Explorer
>plug-in that listen to download request and than doing some
>manipulation to the downloading data.

You cannot manipulate the data while it is actually downloading. For
that,
you should not use TCppWebBrowser (or a BOH) at all, just download the
data
yourself manually via an HTTP component.


Gambit


 

{smallsort}

Re:TCppWebBrowser

"David" < XXXX@XXXXX.COM >wrote in message
Quote
Remy, you're the first person to tell me about this BHO. Can you direct me
to info about this BHO thing ?
Browser Helper Objects: The Browser the Way You Want It
msdn.microsoft.com/library/en-us/dnwebgen/html/bho.asp
Quote
You're right. What I meant is that my program should listen to IE
download request and than obtain the link to this data, and finally
download this link with my program and not with IE.
In that case, a BHO can do that.
Gambit
 

Re:TCppWebBrowser

Great. Thanks. I guess I should now study about COM+ objects and Type
Library, seems to be complicated stuff, but worth the effort.
David
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >כת?
בהודעה:400decca$ XXXX@XXXXX.COM ...
Quote

"David" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...

>Remy, you're the first person to tell me about this BHO. Can you direct
me
>to info about this BHO thing ?

Browser Helper Objects: The Browser the Way You Want It
msdn.microsoft.com/library/en-us/dnwebgen/html/bho.asp

>You're right. What I meant is that my program should listen to IE
>download request and than obtain the link to this data, and finally
>download this link with my program and not with IE.

In that case, a BHO can do that.


Gambit


 

Re:TCppWebBrowser

"David" < XXXX@XXXXX.COM >wrote in message
Quote
Great. Thanks. I guess I should now study about COM+
objects and Type Library, seems to be complicated stuff,
but worth the effort.
If you search through the archives of these groups, I have posted example
BOH code in the past.
Gambit
 

Re:TCppWebBrowser

Thanks to Google, I'v found a thread of your great explaination.
Here is a link for anyone who's interested:
groups.google.co.il/groups&lr=&ie=UTF-8&oe=UTF-8&frame=right&rn
um=1&thl=0,1019896770,1019885476,1019877822,1018759209,1018759207,1018744414
,1018592016,1018497895,1018147322,1018140176,1018128972&seekm=3f84957c%40new
sgroups.borland.com#link1
Thanks again,
David
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >כת?
בהודעה:400f04c0$ XXXX@XXXXX.COM ...
Quote

"David" < XXXX@XXXXX.COM >wrote in message
news: XXXX@XXXXX.COM ...
>Great. Thanks. I guess I should now study about COM+
>objects and Type Library, seems to be complicated stuff,
>but worth the effort.

If you search through the archives of these groups, I have posted example
BOH code in the past.


Gambit


 

Re:TCppWebBrowser

Here is a better one:
"groups.google.co.il/groups&lr=&ie=UTF-8&oe=UTF-8&threadm=3f948
7b0%40newsgroups.borland.com&rnum=2&prev=/groups%3Fq%3DBHO%252Bremy%26hl%3Di
w%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D3f9487b0%2540newsgroups.borland
.com%26rnum%3D2"
David
"David" < XXXX@XXXXX.COM >כת?
בהודעה:400f0a1a$ XXXX@XXXXX.COM ...
Quote
Thanks to Google, I'v found a thread of your great explaination.
Here is a link for anyone who's interested:


groups.google.co.il/groups&lr=&ie=UTF-8&oe=UTF-8&frame=right&rn

um=1&thl=0,1019896770,1019885476,1019877822,1018759209,1018759207,1018744414

,1018592016,1018497895,1018147322,1018140176,1018128972&seekm=3f84957c%40new
sgroups.borland.com#link1

Thanks again,

David

"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >כת?
בהודעה:400f04c0$ XXXX@XXXXX.COM ...
>
>"David" < XXXX@XXXXX.COM >wrote in message
>news: XXXX@XXXXX.COM ...
>>Great. Thanks. I guess I should now study about COM+
>>objects and Type Library, seems to be complicated stuff,
>>but worth the effort.
>
>If you search through the archives of these groups, I have posted
example
>BOH code in the past.
>
>
>Gambit
>
>


 

Re:TCppWebBrowser

"David" < XXXX@XXXXX.COM >wrote in message
Quote
Here is a link for anyone who's interested:
Please use a URL shrinking service such as tinyurl.com or
makeashorterlink.com when posting such long URLs.
Gambit
 

Re:TCppWebBrowser

tinyurl.com/yqly7
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >כת?
בהודעה:400f146f$ XXXX@XXXXX.COM ...
Quote

"David" < XXXX@XXXXX.COM >wrote in message
news:400f0a1a$ XXXX@XXXXX.COM ...

>Here is a link for anyone who's interested:

Please use a URL shrinking service such as tinyurl.com or
makeashorterlink.com when posting such long URLs.


Gambit


 

Re:TCppWebBrowser

Hello all
I am able to display the gif picture in a TCppWebBrowser by using
wchar_t *wString = L"C:\\\no-connection.gif";
CppWebBrowser1->Navigate( wString , TNoParam(),TNoParam(), TNoParam(),
TNoParam());
The CppWebBrowser is using some space like margins to display the file, so i
am getting some space in the body of the CppWebBrowser at the top and left.
How can i display the gif file from left most corner of the CppWebBrowser
Thanks
SA
 

Re:TCppWebBrowser

Quote
How can i display the gif file from left most corner of the CppWebBrowser
More than likely you'll need to actually write the full HTML and/or
CSS code to the browser to accomplish what you want. Setup the
path to the image in the source code the same as you are when just
navigating to it.
-Tom
 

Re:TCppWebBrowser

I've read a bunch of posts on the topic, but am not seeing a solution. Very
simple to duplicate: add a TCppWebBrowser component and Navigate, or
Navigate2, "www.ebrandz.com/". Assuming the page has not changed you
will get an error "...EInvalidOp with message 'invalid floating point
operation;..." and module blows up. IE handles it no problem.
Which brings up issue number 2, of lesser importance; how is error handling
done? "File not found...", "404...", and even Popup handling. I'm assuming
that much of the error handling is reflected in IE by the msgs on the status
bar to the effect of "Done, but with errors."
 

Re:TCppWebBrowser

Ted Tripp wrote:
Quote
Navigate2, "www.ebrandz.com/". Assuming the page has not changed you
will get an error "...EInvalidOp with message 'invalid floating point
operation;..." and module blows up.
That is only half of the story. You forgot to tell that the page does load
and that only at the end of load this error message comes. Probably a piece
of javascript is causing that. Do you already know which?
TWebBrowser does not blow.
Quote
Which brings up issue number 2, of lesser importance; how is error handling
done? "File not found...", "404...",
The server is sending an errormessage or the browser produces one if the
server cannot be reached.
Hans.
 

Re:TCppWebBrowser

Ted Tripp wrote:
Quote
I've read a bunch of posts on the topic, but am not seeing a
solution. Very simple to duplicate: add a TCppWebBrowser component
and Navigate, or Navigate2, "www.ebrandz.com/". Assuming the
page has not changed you will get an error "...EInvalidOp with
message 'invalid floating point operation;..." and module blows up. IE
handles it no problem.
Which brings up issue number 2, of lesser importance; how is error
handling done? "File not found...", "404...", and even Popup
handling. I'm assuming that much of the error handling is reflected
in IE by the msgs on the status bar to the effect of "Done, but with
errors."
I am not sure what component Enigma Browser is written around - again, it is a
wrapper for IE, but it is very good indeed, and does not blow up on that page
(I have seen it blow up on other pages, but so has Opera 9.10)
www.suttondesigns.com/
--
-
Mark Jacobs
DK Computing
www.dkcomputing.co.uk