How can I define a user defined field for contacts using an add-in in Outlook2000 ?

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
 
Top