문제

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