PDA

View Full Version : Suite Events



JBeauvais
09-25-2014, 02:55 PM
Has anyone had any luck getting an action from an event to work in a Suite install? I have created a dll which contains exported functions which work without issue as custom actions from a dialog, but if I try to use the same functions from an event, the QueryInterface fails and returns an error. It doesn't seem to matter which event I use, the QueryInterface always fails.

MichaelU
09-26-2014, 08:40 AM
The UI and the Engine of the Suite provide different (but similar) interfaces: ISuiteExtension vs ISuiteUIExtension. Thus code written for one will not necessarily work for the other. (As long as you only need the shared methods, you can QI for one of the interfaces, if that fails QI for the other, and go from there.)

JBeauvais
10-28-2014, 05:20 PM
I had not realized that there were multiple interfaces. Looking at the help I now see 3 different interfaces. The differences between them are not explained very well, which explains my confusion. Now that I've written my CA functions using the appropriate interface it works fine. Thank you for responding!