Community
The plugin examples shows the body to
STDMETHODIMP CSimpleAddInServer::Deactivate(void)
(for example). But the new wizard creates a function like this:
STDMETHODIMP CCh1AddInAddInServer::OnDeactivate ()
Do they serve the same purpose? And so should I only use OnDeactivate?
Hi,
As I remember, this is just because which type of interface is selected when creating the addin (see attached fig).
if Use IDispatch interfac, it is OnDeactivate (). otherwise, Deactivate. the similar to activate method.
Yes, one was from an old plugin example and one from a wizard generated project.