Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook Folder, PutFields with Redemption

Geek News

Outlook Folder, PutFields with Redemption
jprandi[ at ]gmail.com 8/11/2006 3:43:40 PM
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

Re: Outlook Folder, PutFields with Redemption
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 8/11/2006 10:02:58 PM
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
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net