Ok, I'm feeling a bit out of water here. It's been a while since I got my hands on C# and I'm all about java so the .NET platform, windows stuff is all greek to me but nevertheless I got this challenge at hand and now I'm faced with a troubling question:

  • How do I invoke a BHO function from a menu item in in my tools menu?

I've managed to skip from tutorial to tutorial and implemented a BHO that registers a menu item under 'tools' and I need it to just call one function from my BHO code.

I read that I'm supposed to implement this interface IOleCommandTarget but I can't find it, I have no idea what to reference...

Any help is highly appreciated.

Thanks in advance.

有帮助吗?

解决方案

IOleCommandTarget.

And someone has done the interop for you.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top