CommandBarButton + ATL

D

Duncan Bates

I'm trying to setup two coomand bar buttons in my extension using C++/ATL.
CFilter handles the OnConnection, and creates the aditional toolbar. This
works fine, but I'm having problems setting up the Sink interface for both
buttons.

I'm trying to do this through the IDispEventSimpleImpl interface. I subclass
CFilter from this interface, setup the SINK_ENTRY_INFO for both, but can't
advice the buttons.

OnConnection(...) {
DispEventAdvice(button1,...); works fine
DispEventAdvice(button2,...); Asserts the application
}

Does anyone have some example code to share to accopmlish this (.Net 2003)

Duncan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top