T
TrieTech
Hi Guys,
I've encountered with a problem during Outlook add-in development and
need your help, please.
Here's my code:
CComQIPtr<Outlook::_Explorer> pExplorer;
VRF_HR(m_pApplication->ActiveExplorer(&pExplorer)); // exception
[..bla bla bla to get selected item...]
CComQIPtr<Outlook::_ContactItem> pContactItem;
pContactItem = pDispItem;
CComQIPtr<Outlook::_Inspector> pInspector;
VRF_HR(pContactItem->get_GetInspector(&pInspector)); // exception
pInspector->Activate();
---
Well, the problem is that when inspector displayed (it does well), the
'Next Item' and 'Previous Item' buttons on toolbar are disabled.
Corresponding items in inspector's menu are disabled as well.
Could you please give a hint what's wrong with the code above?
Many thanks in forward!
Best regards, Maxim Tebenev.
TrieTech (http://www.trietech.com)
I've encountered with a problem during Outlook add-in development and
need your help, please.
Here's my code:
CComQIPtr<Outlook::_Explorer> pExplorer;
VRF_HR(m_pApplication->ActiveExplorer(&pExplorer)); // exception
[..bla bla bla to get selected item...]
CComQIPtr<Outlook::_ContactItem> pContactItem;
pContactItem = pDispItem;
CComQIPtr<Outlook::_Inspector> pInspector;
VRF_HR(pContactItem->get_GetInspector(&pInspector)); // exception
pInspector->Activate();
---
Well, the problem is that when inspector displayed (it does well), the
'Next Item' and 'Previous Item' buttons on toolbar are disabled.
Corresponding items in inspector's menu are disabled as well.
Could you please give a hint what's wrong with the code above?
Many thanks in forward!
Best regards, Maxim Tebenev.
TrieTech (http://www.trietech.com)