![]() |
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); } } |
Can get UserProperty Names but not Values?
Adam Dempsey wrote:
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++? You might have better luck in the programming groups. microsoft.public.outlook.program_addins, microsoft.public.outlook.program_forms, microsoft.public.outlook.program_vba -- Brian Tillman [MVP-Outlook] |
Can get UserProperty Names but not Values?
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" wrote in message ups.com... 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); } } |
Can get UserProperty Names but not Values?
On 12 Oct, 17:57, "Dmitry Streblechenko" wrote:
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? I got it sorted in the end _variant_t v; v.Attach (UserProp-GetValue()); _bstr_t b = (_bstr_t)(v); |
Can get UserProperty Names but not Values?
_bstr_t b = UserProp-getValue().bstrVal
|
All times are GMT +1. The time now is 12:31 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com