×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2005
    Location
    Bangalore,India
    Posts
    306

    How to add zipcode to contactItem manually?

    Hi guys!!

    How can i add postal code to contact database?


    CPbkContactItem* contactItem = iPbkContactEngine-> CreateEmptyContactL();
    CleanupStack::PushL( contactItem );
    TPbkContactItemField* zipcode = contactItem->FindField( EPbkFieldIdPostalCode ); // it returns NULL
    zipcode->TextStorage()->SetTextL( aZipcode ); //zipcode
    TContactItemId contactId = iPbkContactEngine-> AddNewContactL(*contactItem);
    CleanupStack::PopAndDestroy( contactItem );


    Above code crashes with KERN-EXEC 3 error. It doesnt find postal-code related field and hence returns NULL. Why it is not able to fing PostalCode field. And is there any other way to add postal code?
    TIA

  2. #2
    Registered User
    Join Date
    Oct 2006
    Posts
    20

    Re: How to add zipcode to contactItem manually?

    how did you solved your problem, now days i am also facing the same problem of adding fields other than default , manually and finding the same result..
    please help me ..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×