Have a question? ask www.kenlet.com
Home  |  FAQ  |  About  |  Contact  |  View Source   
 
SEARCH:
 
BROWSE:
    My Hood
Edit My Info
View Events
Read Tutorials
Training Modules
View Presentations
Download Tools
Scan News
Get Jobs
Message Forums
School Forums
Member Directory
   
CONTRIBUTE:
    Sign me up!
Post an Event
Submit Tutorials
Upload Tools
Link News
Post Jobs
   
   
Home >  Tools >  Code Samples >  Internet Explorer Popup Control
Add to MyHood
   Internet Explorer Popup Control
Stats
  Rating: 4.71 out of 5 by 7 users
  Submitted: 01/24/02
Heath Stewart (clubstew@hotmail.com)

Download This Tool: Disclaimer
 
This nifty utility is an ATL 3.0 project built with VS.NET (not using .NET, though), showing you how you can use new C++ extensions in your source files instead of having to upkeep endless IDL files.

As a Browser Helper Object, this extension to Internet Explorer also shows you how to add functionality with the need for a IDeskBand Toolbar or Explorer bar and shows you how to advise events using macros instead of IConnectionSinks, which can be a bit of a pain and always extra code. For most cases, you can derive from IDispEventImpl<>, which allows you to use macros as with other ATL functionality, similar to message handlers in MFC.

Please note, there is already a compiled file in the Release subdirectory. Simply run "regsvr32 iebhos.dll" from that directory and restart Internet Explorer. You'll find new options in your "Advanced" tab in your Internet Options control panel that determines how to handle Popup Windows. The default is to prompt you when a site tries to open a popup window. You can also allow them or disable them completely.


Return to Browsing Tools

Email this Tool to a Friend

Rate this Content:  
low quality  1 2 3 4 5  high quality



Reader's Comments Post a Comment
 
Hmm I tried installing it but it keeps telling me that the library cant be found... Any ideas? It would be great if this would work! Thanks in advance
-- Jun Nozaki , January 25, 2002
 
Oh, you know what? I forgot to package the mscvrt70.dll, the Microsoft Visual C++ 7.0 runtime. It ships with VS.NET and Office XP, I believe.

If any others are having problems, download it using your Passport from my MSN Community here: http://communities.msn.com/PopupControl/Documents/popctrl.zip . This is an MSI installation with everything you need. The download is a little hefty but only because the MSI 2.0 runtime is included for Win9x and WinNT, which makes up the brunt of the download. The actually DLL is only about 30K or so. Can't remember right off.

Sorry about that, folks!
-- Heath Stewart , January 25, 2002
 
I've worked with BHO's and think they offer a lot of neat functionality, but they're not a very viable option for web developers because they only work in IE. They save a lot of server-side work when developing for IE users, but then you'd also have to develop equivalent server-side code (or horrendously complicated client-side scripting) to make sure things still work for other browsers.
-- Young Fan , January 27, 2002
 
What are you talking about? BHO are COM objects that are supposed to only advise Internet Explorer. They have nothing to do with web sites, except if you override the IE DOM or something with your own DOM to implement different functionality. They are not used by surfers but by local application users running IE. I think you have BHO's confused with something else.
-- Heath Stewart , January 28, 2002
 
It didn't work for me :(
-- Mihir Patel , January 28, 2002
 
Mihir, go to http://communities.msn.com/PopupControl/Documents/popctrl.zip to get the setup version, which includes some additional dependencies that would've been installed with VS.NET that I didn't think to include here. Mostly, this is for source code to show how to use Advise without IConnectionPoints for COM developers.
-- Heath Stewart , January 31, 2002
 
Oh I meant to tell you that I got the installer version and that it works! Thanks a bunch it works like a charm : ), I will also tell others in the forum about it, (just copied the link) hehe keep up the good work
-- Jun Nozaki , January 31, 2002
 
hmm is it possible that your link is down at the moment ?
-- Reiner Zufall , February 03, 2003
 

Copyright © 2001 DevHood® All Rights Reserved