View Single Post
  #1  
Old October 12th 07, 11:32 AM posted to microsoft.public.outlook,microsoft.public.outlook.general,microsoft.public.outlook.program_addins
Adam Dempsey
external usenet poster
 
Posts: 4
Default Can get UserProperty Names but not Values?

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);
}
}

Ads