How can I add a new user defined field for contacts using an add-in in Outlook 2000 ?

  • Thread starter Thread starter kia
  • Start date Start date
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
 
Back
Top