A
Ahmed Al-Lakani
I got a problem in my outlook add-in developed by C++,
While adding new category, I’m trying to add a new Category so I can later
on assign it to my newly created appointment,
My Code as the following
Outlook::Categories *pCats = NULL;
Outlook::Category *pCat = NULL;
HRESULT hRes = E_FAIL;
if(m_pNameSpace != NULL)
{
// get list of categoreies
hRes = m_pNameSpace->get_Categories(&pCats);
if(hRes == S_OK && pCats != NULL)
{
hRes = pCats->Add(BSTR("my new Category"), Outlook:lCategoryColorBlue,
Outlook:lCategoryShortcutKeyNone , &pCat);
}
}
While adding new category, I’m trying to add a new Category so I can later
on assign it to my newly created appointment,
My Code as the following
Outlook::Categories *pCats = NULL;
Outlook::Category *pCat = NULL;
HRESULT hRes = E_FAIL;
if(m_pNameSpace != NULL)
{
// get list of categoreies
hRes = m_pNameSpace->get_Categories(&pCats);
if(hRes == S_OK && pCats != NULL)
{
hRes = pCats->Add(BSTR("my new Category"), Outlook:lCategoryColorBlue,
Outlook:lCategoryShortcutKeyNone , &pCat);
}
}