K
kia
Hi,
I want to add a new user defined field for a contact using an add-in. Is
this possible ?
If this is possible how can I enter a value using the same add-in. I used
until now the following code to add a new contact:
CComQIPtr <Outlook::_Application> spApp(m_spApp);
ATLASSERT(spApp);
CComPtr<Outlook::_ContactItem> spContactItem;
spApp->CreateItem( olContactItem, (IDispatch**)&spContactItem );
spContactItem->put_FirstName( OLESTR("Smith") );
spContactItem->put_LastName( OLESTR("John") );
spContactItem->Save();
Thanks
I want to add a new user defined field for a contact using an add-in. Is
this possible ?
If this is possible how can I enter a value using the same add-in. I used
until now the following code to add a new contact:
CComQIPtr <Outlook::_Application> spApp(m_spApp);
ATLASSERT(spApp);
CComPtr<Outlook::_ContactItem> spContactItem;
spApp->CreateItem( olContactItem, (IDispatch**)&spContactItem );
spContactItem->put_FirstName( OLESTR("Smith") );
spContactItem->put_LastName( OLESTR("John") );
spContactItem->Save();
Thanks