none
I use MAPI to retrieve Outlook Contact's comment, but if the content in comment to long, will return MAPI_E_NOT_ENOUGH_MEMORY error

    Question

  •      The code is:

    SizedSPropTagArray ( 83, mcols ) = { 83,
                             ........
                            PR_BODY_HTML,  //21

    ...

    }

    ULONG pcount;
        SPropValue *props=0;
        HRESULT hr = S_OK;

       hr = imsg->GetProps((SPropTagArray*)&mcols,0,&pcount,&props);

          if (props[21].ulPropTag == PR_BODY_HTML)
        {
            addressBookItem->setNotes(props[21].Value.lpszA);
        }   

       The pr_body_html indicates the notes attribute of contact,

       but if the notes of contact too long, I could not retrieve the attribute.

       I also use the MFCMAPI tool to see the attribute, it also return MAPI_E_NOT_ENOUGH_MEMORY, so could someone tell me the reason? Is it the limition of MAPI?

    Tuesday, January 15, 2013 2:55 AM

All replies