• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Bho

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Bho

    I need to write a BHO for ClientCo to do some DOM tweaks for a project I am working on. I was minded to write the BHO in C++ but they have no C++ smarts in house and are rightly concerned about maintainability.

    I note it is possible to write BHOs in C#. Is there any reason you would choose one language over another?

    I would have thought C++ would have been the shout here as it would create a more lightweight dll, but if the performance trade off is negligable then what the hey, C# it is.
    Knock first as I might be balancing my chakras.

    #2
    One caveat that I'm aware of is that a process can only load one version of the CLR. This means that if there is already a BHO installed on a machine, and that loads, say, CLR1.1, and your BHO needs CLR2.0, then your BHO is SOL

    Alternatively, your BHO gets invited to the party first and loads CLR2.0, and then the other BHO dies

    I'm not certain but I think I read somewhere that the order in which BHOs get initialised is not defined... meaning that sometimes one will crash, and sometimes the other one will. I think there's a good chance they'd take the browser down with them too

    This is related to the matters discussed by Raymond Chen a while back, and in the thread he links to.

    Comment


      #3
      Oh, there's another MSDN thread discussing this very matter... some very helpful stuff in the comments.

      Comment

      Working...
      X