Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Problem writing Browser Helper Object

Problem writing Browser Helper Object

Scheduled Pinned Locked Moved ATL / WTL / STL
c++helpcomsysadminwindows-admin
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dave Midgley
    wrote on last edited by
    #1

    I am trying to write a Browser Helper Object, but I am having a problem making it recognisable as a BHO. Following the instructions in Dino Esposito's MSDN article, using VC++6 I generate a standard ATL Com AppWizard project, selecting .DLL as the server type. I then insert an ATL Object, selecting an Internet Explorer Object, leaving all the defaults (appartment threading, dual interface, aggregation, no errorInfo, Connection Points or Free Threaded Marshaller). I then simply add the extra registration into the .RGS file to put the CLSID into HKLM|software|microsoft|windows|Current Version|explorer|Browser Helper Objects. I do not add any extra code, but just build the project. It registers OK, and the CLSID appears in the registry as expected. However, when I run BHODemon (www.definitivesolutions.com), it does not see the new helper, nor, as far as I can tell, does Internet Explorer. I have compared my software with working BHOs such as IEhelper and Dino Esposito's HTMLEdit, but can find nothing to explain my difficulty. Can anyone help? Dave

    M M 2 Replies Last reply
    0
    • D Dave Midgley

      I am trying to write a Browser Helper Object, but I am having a problem making it recognisable as a BHO. Following the instructions in Dino Esposito's MSDN article, using VC++6 I generate a standard ATL Com AppWizard project, selecting .DLL as the server type. I then insert an ATL Object, selecting an Internet Explorer Object, leaving all the defaults (appartment threading, dual interface, aggregation, no errorInfo, Connection Points or Free Threaded Marshaller). I then simply add the extra registration into the .RGS file to put the CLSID into HKLM|software|microsoft|windows|Current Version|explorer|Browser Helper Objects. I do not add any extra code, but just build the project. It registers OK, and the CLSID appears in the registry as expected. However, when I run BHODemon (www.definitivesolutions.com), it does not see the new helper, nor, as far as I can tell, does Internet Explorer. I have compared my software with working BHOs such as IEhelper and Dino Esposito's HTMLEdit, but can find nothing to explain my difficulty. Can anyone help? Dave

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Did you implement IObjectWithSite, and put that interface in your COM_MAP so the object responds to QI calls for IObjectWithSite? --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ "Linux is good. It can do no wrong. It is open source so must be right. It has penguins. I want to eat your brain."   -- Paul Watson, Linux Zombie

      1 Reply Last reply
      0
      • D Dave Midgley

        I am trying to write a Browser Helper Object, but I am having a problem making it recognisable as a BHO. Following the instructions in Dino Esposito's MSDN article, using VC++6 I generate a standard ATL Com AppWizard project, selecting .DLL as the server type. I then insert an ATL Object, selecting an Internet Explorer Object, leaving all the defaults (appartment threading, dual interface, aggregation, no errorInfo, Connection Points or Free Threaded Marshaller). I then simply add the extra registration into the .RGS file to put the CLSID into HKLM|software|microsoft|windows|Current Version|explorer|Browser Helper Objects. I do not add any extra code, but just build the project. It registers OK, and the CLSID appears in the registry as expected. However, when I run BHODemon (www.definitivesolutions.com), it does not see the new helper, nor, as far as I can tell, does Internet Explorer. I have compared my software with working BHOs such as IEhelper and Dino Esposito's HTMLEdit, but can find nothing to explain my difficulty. Can anyone help? Dave

        M Offline
        M Offline
        macattack
        wrote on last edited by
        #3

        You know that in the RGS file there are 2 CLSID's right? Did you select the correct one?

        D 1 Reply Last reply
        0
        • M macattack

          You know that in the RGS file there are 2 CLSID's right? Did you select the correct one?

          D Offline
          D Offline
          Dave Midgley
          wrote on last edited by
          #4

          Well spotted. An excellent bit of remote diagnosis. That's exactly what I didn't do. I selected the wrong one. Thanks. Dave

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups