How to develop an add-in for internet explorer?

  • Thread starter Thread starter Tommy Shore
  • Start date Start date
Tommy Shore said:
Give me some advice plz, thanks.

Well, you don't say what you want to do so your question is a bit
open-ended.

You might want to start your research by googling for "browser helper
object" (aka BHO) and/or "explorer bar".

Regards,
Will
 
Tommy Shore said:
I need this:
I click a href such as http://localhost/down.aspx?nid=123 and in fact it
points to a file named 123.zip, I want to
get the file name "123.zip" before the downloading begins.

So, what should I do?

The browser control has an interface named DWebBrowser2. One of the events
on that interface is BeforeNavigate2 which fires just before the control
moves to a new URL. I _think_ (but I am not sure) that a Browser Helper
Object could be used to get access to this interface in IE so that you could
track IE's movements. Alternatively, you could host the browser control in
your own application.

Dino Esposito has written in MSJ or MIND or MSDN magazine on the topic. You
might want to search the web.

Regards,
Will
 
Thanks very much.

Now I can catch the event "DWebBrowserEvent2->FileDownLoad", but I don't
know how can I catch get file name from the website.
What function or class should I use to get the name?For example
http://localhost/vc6.rar, how can I get it?
 
Tommy Shore said:
Thanks very much.

You are welcome.
Now I can catch the event "DWebBrowserEvent2->FileDownLoad", but I don't
know how can I catch get file name from the website.

I don't know for sure. I suggest you do some experimenting. I would expect
that the sequence of events might be something like

BeforeNavigate2 // includes URL
FileDownload
DownloadBegin
DownloadComplete
NavigateComplete2

but that's just speculation on my part.

Regards,
Will
 
Back
Top