Re: Porting BHO to Vista



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.

.



Relevant Pages

  • Re: Igors APP and BHO
    ... I want to communicate between my BHO and APP but I new to COM. ... In fact, I haven't tested my APP on IE7, I don't know if it ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Porting BHO to Vista
    ... and found that the communication suddenly started working. ... If you have any suggestions for how to get the BHO to communicate with ... my app without running as the administrator, ... how can I debug into this module? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Porting BHO to Vista
    ... Somewhere there are some gotchas that I am running into with this BHO now. ... 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. ... 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. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Porting BHO to Vista
    ... 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. ... 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. ... 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. ... how can I debug into this module? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Nick and DevCo, plz see
    ... is to be able to debug the app while it is running on Vista. ... I suppose that would be a motivation. ...
    (borland.public.delphi.non-technical)