![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
#2
|
|||
|
|||
![]()
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] |
#3
|
|||
|
|||
![]()
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); } } |
#4
|
|||
|
|||
![]()
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); |
#5
|
|||
|
|||
![]()
_bstr_t b = UserProp-getValue().bstrVal
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can get UserProperty Names but not Values? | Adam Dempsey | Outlook - General Queries | 4 | October 15th 07 03:07 AM |
Regarding outlook UserProperty | Bharathi | Add-ins for Outlook | 1 | October 12th 07 02:19 PM |
How to add a UserProperty to a MAPIFolder? | Jeff | Outlook and VBA | 4 | November 8th 06 10:10 PM |
SaveAs() sometimes loses userProperty! | PuppetMaster | Add-ins for Outlook | 3 | January 24th 06 10:49 AM |
SaveAs() sometimes loses userProperty! | PuppetMaster | Outlook and VBA | 3 | January 24th 06 10:49 AM |