Click here to Skip to main content
15,905,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalvery simple question Pin
davzfr20-Feb-03 6:01
davzfr20-Feb-03 6:01 
General'specia 'message box Pin
Anonymous20-Feb-03 5:47
Anonymous20-Feb-03 5:47 
GeneralRe: 'specia 'message box Pin
Chris Losinger20-Feb-03 6:50
professionalChris Losinger20-Feb-03 6:50 
GeneralRe: 'specia 'message box Pin
Anonymous20-Feb-03 22:50
Anonymous20-Feb-03 22:50 
GeneralC++ DLL and MFC Pin
uapc20-Feb-03 5:35
sussuapc20-Feb-03 5:35 
GeneralRe: C++ DLL and MFC Pin
Iain Clarke, Warrior Programmer20-Feb-03 6:17
Iain Clarke, Warrior Programmer20-Feb-03 6:17 
GeneralRe: C++ DLL and MFC Pin
Anonymous20-Feb-03 7:02
Anonymous20-Feb-03 7:02 
GeneralWebbrowser control annoying security alert dialogs Pin
GriffonRL20-Feb-03 5:33
GriffonRL20-Feb-03 5:33 
Hello,

I'm using the webbrowser control in an application where the crawling is totally automated.
The problem is that sometimes the browser try to crawl an archive file or whatever. In that case a security alert dialog box pops up and my webbrowser control waits for this dialog to close.
I already succeded removing all Javascript dialogs by implementing the IDocHostShowUI interface and by putting the control into the "silent" mode (put_silent()).
I also implemented the IDocHostUIHandler to return S_OK or S_FALSE wherever possible to get rid of a maximum of MSHTML UI unwanted behaviours.
But I still get this security alert dialogs and I have no ideas of how to avoid them.

The only solution I found for the moment is to filter the links the webbrowser control can crawl in a page by removing files containing 'zip','rar','mp3','jpg','gif'... And so on.
But this solution is not perfect because of the number of possible file types and because sometimes you can't even guess what it is from the URL.
If only the webbrowser control could allow me to access the HTTP file headers before display, to guess what it is from the content-type !

But even if I can filter the URL I crawl, I would really like a solution to remove the security alert dialogs.
I also tried to tweak the Internet Explorer options to avoid prompts and dialogs but I didn't solve this problem.

Any idea ?

Thanks,


R. LOPES
Just programmer.
GeneralRe: Webbrowser control annoying security alert dialogs Pin
Todd Smith20-Feb-03 8:14
Todd Smith20-Feb-03 8:14 
GeneralRe: Webbrowser control annoying security alert dialogs Pin
GriffonRL20-Feb-03 21:30
GriffonRL20-Feb-03 21:30 
GeneralRe: Webbrowser control annoying security alert dialogs Pin
Todd Smith21-Feb-03 6:21
Todd Smith21-Feb-03 6:21 
GeneralRe: Webbrowser control annoying security alert dialogs Pin
GriffonRL23-Feb-03 20:57
GriffonRL23-Feb-03 20:57 
Generalhotkeys on a dialog Pin
Qadddd20-Feb-03 5:24
Qadddd20-Feb-03 5:24 
GeneralRe: hotkeys on a dialog Pin
Iain Clarke, Warrior Programmer20-Feb-03 6:14
Iain Clarke, Warrior Programmer20-Feb-03 6:14 
GeneralRe: hotkeys on a dialog Pin
Qadddd24-Feb-03 4:34
Qadddd24-Feb-03 4:34 
GeneralRe: hotkeys on a dialog Pin
Qadddd24-Feb-03 6:55
Qadddd24-Feb-03 6:55 
GeneralRe: hotkeys on a dialog Pin
Iain Clarke, Warrior Programmer25-Feb-03 0:41
Iain Clarke, Warrior Programmer25-Feb-03 0:41 
GeneralRe: hotkeys on a dialog Pin
Qadddd26-Feb-03 23:20
Qadddd26-Feb-03 23:20 
GeneralPort forwarding Pin
User 988520-Feb-03 4:59
User 988520-Feb-03 4:59 
GeneralRe: Port forwarding Pin
User 988520-Feb-03 5:10
User 988520-Feb-03 5:10 
GeneralRe: Port forwarding Pin
Anonymous20-Feb-03 10:01
Anonymous20-Feb-03 10:01 
GeneralRe: Port forwarding Pin
User 988520-Feb-03 10:12
User 988520-Feb-03 10:12 
GeneralRe: Port forwarding Pin
User 988520-Feb-03 10:13
User 988520-Feb-03 10:13 
GeneralSlider control Pin
jimNLX20-Feb-03 4:35
jimNLX20-Feb-03 4:35 
GeneralRe: Slider control Pin
valikac20-Feb-03 7:32
valikac20-Feb-03 7:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.