Re: Porting BHO to Vista
- From: Rich Douglass <richdvt@xxxxxxxxxxxxxx>
- Date: Tue, 27 Nov 2007 13:55:33 -0500
Jean-Febrice,
Thank you for your helpful comments. One of the problems I am seeing in my BHO, is that beeps and debugging information that I write to a log file are not occurring. I have some of them at dll initialization (dllmain()) as well as in my SetSite() function that calls Advise() and that should be happening when IE starts up.
So that makes me think that there is something wrong with the BHO itself. I have memory-mapped files that I use to share information with some hooks and those are working well and the code that implements them hasn't changed any. So I doubt the memory-mapped shared memory is the issue, but I also know that you can never count anything out until the source of the problem is found.
I have seen some references to IE running at a different privilege level than other applications, which is why I suspect that there could be more UAC type issues that I am running into here. UAC was a major headache for my interactive app, but that is now resolved.
I will have to try setting some breakpoints in the BHO and see if I can get it to break in it.
I appreciate any further suggestions you have.
Regards,
Rich.
Jean-Fabrice RABAUTE wrote:
Rich Douglass a écrit :.Hi,
I have a BHO that I originally wrote in MSVC 6 that works perfectly in XP with IE 5.5, 6 and 7. Of course, I move it to Vista and IE 7 and now it does not work at all.
In order to try to get it to work, I have rebuilt it with VS 2005 Express and was finally able to get the libraries set up properly such that I was able to get a clean build of it.
I have also added a manifest to it and signed it.
Somewhere there are some gotchas that I am running into with this BHO now. When I run IE, it starts up just fine and nothing seems to be amiss. But when I start the interactive portion of my app that communicates via messages and shared memory with the BHO, IE locks up and just beeps if I click on it. It is running to some extent as I can put other windows on top of it and when I remove them, IE repaints, but I cannot do anything and have to kill the process.
So my questions are thus:
What additional things must I do to get this BHO to run on Vista? I have tried various settings in the manifest, including security settings asInvoker and asAdministrator, but those have not helped.
Given my current build environment, how can I debug into this module? I was able to do so with MSVC 6, but have not been able to figure out how to do so with VS2005 Express. I have tried putting in debugging statements that write to a log file in the APPDATA area so that it has permission to write there, but nothing is getting logged.
Anything else I need to look out for or need to do to get the BHO to run and talk to my app appropriately?
Thank you. If more information is needed, let me know and I will provide whatever is necessary.
Regards,
Rich.
Hi,
Looks like your problem is not with BHO but maybe with the "interactive part" of your application (that is BHO communicating with other app).
Maybe some part of your "messages" and "shared memory" code is not working well on Vista.
To debug under VS2005 is the same as VS6... add breakpoints on your app, and launch it is debug mode. The process should stop when the breakpoint occurs and you should get all the debug environment in VS2005.
Hope this helps.
- References:
- Porting BHO to Vista
- From: Rich Douglass
- Re: Porting BHO to Vista
- From: Jean-Fabrice RABAUTE
- Porting BHO to Vista
- Prev by Date: Re: Porting BHO to Vista
- Next by Date: Re: scrolling in an IE add-on
- Previous by thread: Re: Porting BHO to Vista
- Next by thread: Re: Porting BHO to Vista
- Index(es):
Relevant Pages
|