0x662 is not a valid property tag. See http://www.dimastr.com/redemption/utils.htm#xmapi What is the property that you are trying to set?
Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool
<jprandi[ at ]gmail.com> wrote in message news:1155311020.030330.86170[ at ]74g2000cwt.googlegroups.com...
[Quoted Text] > 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 >
|