[Nektra-NKTWAB] Unable to delete default email field

6 views
Skip to first unread message

Febin

unread,
Apr 19, 2010, 2:05:28 AM4/19/10
to Nektra-NKTWAB
Hi,

I have a contact with one email address. I was not able to delete the
default email address of that contact using NKTWAB. I tried the
following set of codes.

m_pContact->PutEmail1Address(_bstr_t(""));
m_pContact->Save();

m_pContact->PutDefaultEmailAddress(_bstr_t(""));
m_pContact->Save();

Both the approaches were giving same error (0x80040202 -
MAPI_E_MISSING_REQUIRED_COLUMN) while saving the contact. Please help
me to solve this issue.

Regards
Febin

--
You received this message because you are subscribed to the Google Groups "Nektra-NKTWAB" group.
To post to this group, send email to nektra...@googlegroups.com.
To unsubscribe from this group, send email to nektra-nktwa...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nektra-nktwab?hl=en.

Federico Zaina

unread,
Apr 20, 2010, 10:01:07 AM4/20/10
to nektra...@googlegroups.com
Hi Febin,

Please check the name of the functions you want to call according to the product's documentation.
Also check this previous post to see if it helps.

Thank you for contacting Nektra.

Regards,

Federico
--
Nektra Advanced Computing
http://www.nektra.com

Federico Zaina

unread,
Apr 22, 2010, 12:53:07 PM4/22/10
to Febin M. J, nektra...@googlegroups.com
Hi again Febin,

Sorry about the confusion. Another developer asked about this and here were the instructions that worked for him:
You should look for this function in wab_item.cpp , then you should check every property and look for which is the one that displays that content, check which one is showing up.
That's the one you should delete, look for some field that says 'display' or similar.


Regards,

Federico
--
Nektra Advanced Computing
http://www.nektra.com


Febin M. J wrote:
The link you provided talks only about getting or setting the default email address. Our requirement is to remove the default email address from Outlook Express Adressbook.
I tried to set the default email address to empty string and save it..
m_pContact->PutDefaultEmailAddress(_bstr_t(""));
m_pContact->Save();  //throws exception  (0x80040202 - MAPI_E_MISSING_REQUIRED_COLUMN)
but this gave me an exception on Save.

Please let me know if you need any further information.

Regards
Febin
Reply all
Reply to author
Forward
0 new messages