Do you see the properties in MFCMAPI or OutlookSpy (click IMessage)?
Are you use you have a string property? What is the value of
UserProp->Value.vt?
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Adam Dempsey" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> >From C++ using UserProp->Name I can get the name of a UserProperty,
> but UserProp->Value.bstrVal always returns nothing, anyone have any
> ideas what I could be doing wrong and has anyone ever accessed
> UserProperties from C++?
>
>
> UserPropertiesPtr UserProps = Con->UserProperties;
> if (UserProps->Count > 0)
> {
> tot = UserProps->Count;
> UserPropertyPtr UserProp;
> for (i=1;i < tot + 1;i++)
> {
> UserProp = UserProps->Item(i);
> MessageBox(NULL,UserProp->Name,"Test - Name",MB_OK);
> char* sText;
> sText = (char*)UserProp->Value.bstrVal;
> MessageBox(NULL,sText,"Test - Value",MB_OK);
> }
> }
>