The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: James Ladd on September 17, 2005, 01:07:32 AM

Title: Browser extensions ... working example
Post by: James Ladd on September 17, 2005, 01:07:32 AM
All,

I found this site while trying to find some information on Firefox extensions and
its fantastic.  http://www.iosart.com/firefox/xpcom/

If only I could find same for IE ?

rgs, striker.
Title: Re: Browser extensions ... working example
Post by: comrade on September 17, 2005, 01:29:41 AM
for IE, they are called Browser Helper Objects (BHOs) and you can read about them on MSDN (MSDN.MICROSOFT.COM)
Title: Re: Browser extensions ... working example
Post by: James Ladd on September 17, 2005, 01:33:47 AM
Comrade,

Thanks for the response.

Does anyone know where I can download a working example with source for a Browser Helper Object ?

rgs, striker.
Title: Re: Browser extensions ... working example
Post by: arafel on September 17, 2005, 01:49:34 AM
Here is example of intercepting URL links using BHO (extracted it from a download manager hobby project i am currently working on)

needs vc++ 6 to compile.
function in load.asm used to load the dll...

[attachment deleted by admin]
Title: Re: Browser extensions ... working example
Post by: James Ladd on September 17, 2005, 02:53:39 AM
Arafel,

Wow, thanks for that.

I found the great article here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebgen/html/bho.asp
It mentions that the source code is available through MSDN Online. Does anyone have access and or the source code mentioned ?

rgs, striker.
Title: Re: Browser extensions ... working example
Post by: sluggy on September 18, 2005, 07:21:24 AM
MSDN Online is exactly where you were, no membership required  :P
Title: Re: Browser extensions ... working example
Post by: Bieb on September 18, 2005, 11:44:39 PM
NO!  DON'T LET YOUR TALENT AND CREATIVITY GO TO WASTE!  MAKE FIREFOX EXTENSIONS INSTEAD!
Title: Re: Browser extensions ... working example
Post by: P1 on September 19, 2005, 06:00:04 PM
Quote from: Robert Bieber on September 18, 2005, 11:44:39 PM
NO!  DON'T LET YOUR TALENT AND CREATIVITY GO TO WASTE!  MAKE FIREFOX EXTENSIONS INSTEAD!
Well, I'm sorry you feel this way.  IE does many wonderful things, as well as some not so.  But FireFox is not the end of the world for browsers.  Each has it's place, pros and cons.

In our corporate environment,  we standardize on IE.  Though I do use both IE and FireFox.

It's just your opinion, that we need to extend IE to be better.

Regards,  P1  :8)
Title: Re: Browser extensions ... working example
Post by: Bieb on September 19, 2005, 07:06:35 PM
It's not opinion, it's practical experience.  Everyone who's ever used both browsers knows that Firefox is much better in terms of features, but, more importantly, doesn't have anywhere near as many security problems as Internet Explorer.  Since switching to Firefox, I haven't had any problems at all with malware or nasty things installing themselves in my browser.  Or popups.  Yet all these things are constant annoyances to IE users...
Title: Re: Browser extensions ... working example
Post by: MichaelW on September 19, 2005, 07:51:00 PM
I've had no problems with "malware or nasty things installing themselves" in IE. You just have to take precautions (that would probably not be necessary with Firefox, yet), and be careful where you go and what you do.

Title: Re: Browser extensions ... working example
Post by: Robert Collins on September 20, 2005, 05:23:20 AM
Quote from: arafel on September 17, 2005, 01:49:34 AM
Here is example of intercepting URL links using BHO (extracted it from a download manager hobby project i am currently working on)

needs vc++ 6 to compile.
function in load.asm used to load the dll...

OK, except load.asm won't assemble....too many code errors.
Title: Re: Browser extensions ... working example
Post by: arafel on September 20, 2005, 05:35:46 AM
Robert C.,

Sorry about that...
Stuff in load.asm is just a function I cut out from some other, bigger, project. I only put it as a reference regarding registry entries which should be added to install the dll. So I didn't bother turning it into standalone app.

If you want to test the dll: regsvr32 it, check the commented lines in load.asm and add appropriate registry entries manually.
Title: Re: Browser extensions ... working example
Post by: Robert Collins on September 20, 2005, 01:03:36 PM
OK, I understand. Thanks.
Title: Re: Browser extensions ... working example
Post by: P1 on September 21, 2005, 01:39:42 PM
This thread was split.  This part is to be about the original topic, BHOs for IE.

The discussion over the features and benefits of IE vs FF was moved to the Colosseum.

Regards,  P1  :8)
Title: Re: Browser extensions ... working example
Post by: Robert Collins on September 26, 2005, 01:33:22 PM
Has anyone gotton that iecm program to work? I have successfully been able to rebuild it using C++ (which includes the ATL code and other stuff to self-register the DLL). When I launch the IE browser I don't see where it does anything. I have other BHO programs that work and I used a template of one of those that do work to get this one to build and register but what does it do?
Title: Re: Browser extensions ... working example
Post by: James Ladd on September 29, 2005, 07:32:32 AM
Robert,

There are quite a few good examples around that work.
Do you have the latest version of Visual Studio ?

Rgs, striker,.
Title: Re: Browser extensions ... working example
Post by: Robert Collins on September 29, 2005, 06:21:01 PM
Quote from: striker on September 29, 2005, 07:32:32 AM
Robert,

There are quite a few good examples around that work.
Do you have the latest version of Visual Studio ?

Rgs, striker,.


If you mean Visual Studio NET, no, I do not have it. I have VS 6.0 Enterprise

Point me to those examples. I can make them work for VS 6. Thanks
Title: Re: Browser extensions ... working example
Post by: James Ladd on September 30, 2005, 07:39:26 AM
ok. When I get home Ill post an example.

I have Visual C++ 6 but the examples I find use ATL7.0 and I dont know how to install this yet.
Title: Re: Browser extensions ... working example
Post by: Robert Collins on September 30, 2005, 01:17:53 PM
If you can get ATL 7.0 as a seperate package all you have to do is to put it in your Visual Studio\VC98\ folder and then set the path to it. Sometimes if I can't get the VC compiler to include certain .h files I just get the .h files myself and place them in the same folder as the project I am working on then I have to change the source code to include local header files, ie, I change #include <someheader.h> to #include "someheader". I never have a problem doing this.
Title: Re: Browser extensions ... working example
Post by: James Ladd on September 30, 2005, 10:00:03 PM
Ill just get .net and then I should be ok./
Title: Re: Browser extensions ... working example
Post by: drhowarddrfine on September 30, 2005, 11:57:17 PM
As God is my witness, I will never program .NET.
Title: Re: Browser extensions ... working example
Post by: sluggy on October 02, 2005, 11:49:58 PM
Aww shucks, .Net is great  :bg
Title: Re: Browser extensions ... working example
Post by: PBrennick on October 03, 2005, 03:11:26 AM
Neither will I, nor will I use any software that requires the bloated support files.

P
Title: Re: Browser extensions ... working example
Post by: Robert Collins on October 03, 2005, 03:47:17 AM
I know nothing about .NET but I sure do like VS 6.0
Title: Re: Browser extensions ... working example
Post by: James Ladd on October 03, 2005, 10:00:32 PM
I installed .NET 2003 last night because I needed to.
Its ok. Ill use it for what I need and thats it.
Title: OT: .Net
Post by: P1 on October 04, 2005, 04:44:20 PM
I have been successfully signing my MASM code.  In that way, it becomes managed code. 

So I'm real content to stick it out with MASM, til death due us part.

Regards,  P1  :8)
Title: Re: Browser extensions ... working example
Post by: GregL on October 04, 2005, 06:31:44 PM
I think Visual C/C++ .NET 2003 is an excellent C compiler. You don't have to write .NET programs with it. I just wish it supported C99, ... that's where Pelles C shines.


P1,

Could you elaborate on that?


Title: OT: .Net
Post by: P1 on October 04, 2005, 09:14:29 PM
I have my own publishing security certificate for writing software.
I have the certificate loaded on all my network clients.

When your done Assembling your software, you sign it. 

What I don't like is the self-certs are time limited.  So I am stuck, re-certifing our software every few years.

Regards,  P1  :8)
Title: Re: Browser extensions ... working example
Post by: GregL on October 06, 2005, 07:47:35 PM
P1,

I see.