I am facing a problem in an application, which i m creating. What i am doing is i m creating a handle of OUTlook Express in my application as soon as OUTlook express is launched. This i did by
STDMETHOD(OnConnection)(IDispatch * Application, ext_ConnectMode ext_cm_Startup/*ConnectMode*/, IDispatch * AddInInst, SAFEARRAY * * custom)
// QueryInterface() for _Application
CComQIPtr <Outlook::_Application> spApp(Application);
/* remaining code */
The problem I am facing is that when outlook express is closed, my corresponding function is not called. What i did is this
STDMETHOD(OnBeginShutdown)(SAFEARRAY * * custom)
// it should be called when the outlook main window is been closed.
STDMETHOD(OnDisconnection)(ext_DisconnectMode ext_dm_HostShutdown/*RemoveMode*/, SAFEARRAY * * custom)
Neither of function is getting called. Could any of you can tell what the problem is, and is there any other event to use?
Waiting for ans.