Re: Porting BHO to Vista
- From: Rich Douglass <richdvt@xxxxxxxxxxxxxx>
- Date: Wed, 28 Nov 2007 13:02:06 -0500
Jean-Fabrice,
Thank you again for your comments. I have some additional information to share. I have read about IE under Vista being run in a protected mode that is very restrictive, so I ran it this morning "As Administrator" and found that the communication suddenly started working. I was able to send messages to my interactive app and in one test, I believe I was able to send messages the other way as well, but I need to verify that.
I have not found that I can write data to a log file yet, but I have found that when dealing with hooks and the BHO, there are times that setting breakpoints and stepping through the code doesn't work well (hooks are disabled, etc), so logging is sometimes the only way to see what is going on.
If you have any suggestions for how to get the BHO to communicate with my app without running as the administrator, I would appreciate it.
Thank you.
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.
- Follow-Ups:
- Re: Porting BHO to Vista
- From: Jean-Fabrice RABAUTE
- Re: Porting BHO to Vista
- From: Sheng Jiang[MVP]
- Re: Porting BHO to Vista
- 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: scrolling in an IE add-on
- Next by Date: Re: Porting BHO to Vista
- Previous by thread: Re: Porting BHO to Vista
- Next by thread: Re: Porting BHO to Vista
- Index(es):
Relevant Pages
|
|