How to addin the New inspector !(VC++)

H

hostran

Hi

( CComQIPtr <Outlook::_Application> m_spApp(Application);
ATLASSERT(m_spApp);)
(m_spApp=0x00b64028)
I can detect the NewInspector event,then I do:

CComPtr<Outlook::_Inspector> exInspector;
m_spApp->ActiveInspector(&exInspector);
ATLASSERT(exInspector);

but I find that exInspector = 0 !

msdn library say:

The NewInspector event occurs after the new Inspector object is created but
before the inspector window appears.

is it the result that the exInspector = 0 ?



Thanks in advance !



Lit
 
M

Martynas Kunigelis

The new inspector is passed as an argument to the NewInspector event handler
function (as a pointer to IDispatch). I am not sure that
Application::ActiveInspector is actually supposed to return the new
inspector.

Hope this helps.

Martynas
 

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