A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Can get UserProperty Names but not Values?



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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);
}
}

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can get UserProperty Names but not Values? Adam Dempsey Outlook - General Queries 4 October 15th 07 04:07 AM
Regarding outlook UserProperty Bharathi Add-ins for Outlook 1 October 12th 07 03:19 PM
How to add a UserProperty to a MAPIFolder? Jeff Outlook and VBA 4 November 8th 06 11:10 PM
SaveAs() sometimes loses userProperty! PuppetMaster Add-ins for Outlook 3 January 24th 06 11:49 AM
SaveAs() sometimes loses userProperty! PuppetMaster Outlook and VBA 3 January 24th 06 11:49 AM


All times are GMT +1. The time now is 08:54 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-2025 Outlook Banter.
The comments are property of their posters.