Outlook Folder, PutFields with Redemption

J

jprandi

Hi Dmitry,

I've been trying to add some custom fields with Redemtion with no
success. I've seen with OutlookSpy that it works pretty fine, but
somehow my code isn't working. I'm working in OL2003, and this is my
code:

***********
CComPtr<Outlook::MAPIFolder> folder;
[...]
Redemption::ISafeMAPIFolderPtr sItem;
HRESULT hRes =
sItem.CreateInstance(__uuidof(Redemption::ISafeMAPIFolder));
if (SUCCEEDED(hRes))
{
sItem->Item = folder;
sItem->SetMAPIOBJECT(folder.p);
sItem->PutFields(0x662, VARIANT_TRUE);
}

Any clues?
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top