frappe584025

i try to run this http://msdn.microsoft.com/library/default.asp url=/library/en-us/ietechcol/cols/dnexpie/expie_hello_bho.asp example, i managed to register the BHO but i can not make it respond to events as it is described.

What steps excactly should i do to run the next example that interacts with IE

So far i add the code that is given, then i save the project and press debug but it fails and show me this:

c:\documents and settings\elektra\my documents\visual studio 2005\projects\helloworld\helloworld\helloworldbho.h(23) : error C2065: 'LIBID_TestBho1Lib' : undeclared identifier

c:\documents and settings\elektra\my documents\visual studio 2005\projects\helloworld\helloworld\helloworldbho.h(23) : error C2955: 'ATL::IDispatchImpl' : use of class template requires template argument list

c:\program files\microsoft visual studio 8\vc\atlmfc\include\atlcom.h(4577) : see declaration of 'ATL::IDispatchImpl'

c:\documents and settings\elektra\my documents\visual studio 2005\projects\helloworld\helloworld\helloworldbho.h(24) : fatal error C1903: unable to recover from previous error(s); stopping compilation

Generating Code...

Build log was saved at "file://c:\Documents and Settings\Elektra\My Documents\Visual Studio 2005\Projects\HelloWorld\HelloWorld\Debug\BuildLog.htm"

HelloWorld - 3 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

this is my first attempt to something like this so please be patient



Re: Internet Explorer Extension Development Building Browser Helper Objects with Visual Studio 2005 HELP!!!!!

Anonymous

Double check your includes there are two on that page.

#include <exdispid.h> // DISPID_DOCUMENTCOMPLETE, etc

#include <shlguid.h>   // IID_IWebBrowser2, DIID_DWebBrowserEvents2, etc.




Re: Internet Explorer Extension Development Building Browser Helper Objects with Visual Studio 2005 HELP!!!!!

John Sudds - MSFT

Please use the following link to the article on MSDN2:
http://msdn2.microsoft.com/en-us/library/bb250489.aspx

The article was updated to remove a BUG (my fault) in the source code, but due to the eminent retirement of the old MSDN site the original article was never updated.

The aforementioned BUG came about due to a cut and paste error; I forgot to change the symbol &LIBID_TestBho1Lib to:
&LIBID_HelloWorldLib
I believe the remainder of the compile errors will go away once you update your source.





Re: Internet Explorer Extension Development Building Browser Helper Objects with Visual Studio 2005 HELP!!!!!

frappe

thknks it works just fine now!!!!

i am going to run the next example now and then i will try to make a variation of it.





Re: Internet Explorer Extension Development Building Browser Helper Objects with Visual Studio 2005 HELP!!!!!

frappe

have this Jscript code :

var rng = document.body.createTextRange(); for (i=0; rng.findText("sample")!=false; i++) { rng.collapse(); }

i want to try to extend the bho of the article for a homework i have. I want to display the window only if the bho finds the specified text. can anyone give me any directions on how to implement this Jscript code in C++
it is my first attempt, so please be patient...
thank you!