A
Antonio Casilias
Hello.
I need to get current IMAPIFolder and this is my code:
CComPtr<IMAPIFolder> CConnect::GetCurrentIMAPIFolder()
{
CComPtr<Outlook::MAPIFolder> MFolder;
m_spExplorer->get_CurrentFolder(&MFolder);
if (MFolder == NULL)
return NULL;
return CComQIPtr<IMAPIFolder, &IID_IMAPIFolder>(MFolder->MAPIOBJECT);
}
My addin works proper in MS Outlook2003, but it crashes in MS Outlook2000.
Could you advice me how to avoid Outlook 2000 crash?
Sorry, for my bad english.
Thanks in advance.
I need to get current IMAPIFolder and this is my code:
CComPtr<IMAPIFolder> CConnect::GetCurrentIMAPIFolder()
{
CComPtr<Outlook::MAPIFolder> MFolder;
m_spExplorer->get_CurrentFolder(&MFolder);
if (MFolder == NULL)
return NULL;
return CComQIPtr<IMAPIFolder, &IID_IMAPIFolder>(MFolder->MAPIOBJECT);
}
My addin works proper in MS Outlook2003, but it crashes in MS Outlook2000.
Could you advice me how to avoid Outlook 2000 crash?
Sorry, for my bad english.
Thanks in advance.