Problem retrieving OneOffMembers

Oct 12, 2011 at 12:41 AM

I am trying to retrieve the multi-value binary named property "OneOffMembers" from an entry in the Contacts folder.  Can you tell me what is wrong with the following code:

std::vector<std::vector<pstsdk::byte>> member;

 

 

 

member = bag.read_prop<std::vector<std::vector<pstsdk::byte>>>(nprop);

The value of nprop is 0x8149, which was obtained by looking up 0x8054 in the named id table.  This corresponds to the values that I see for that property with Outlook Spy.  You can assume that 'bag' is valid, because I have used that to obtain other properties from the entry.  The problem with the code is that it produces an exception.  Any suggestions?

 

 

 

Coordinator
Oct 12, 2011 at 6:04 AM

    member = bag.read_prop<std::vector<std::vector<pstsdk::byte>>>(nprop);

Should be

    member = bag.read_prop_array<std::vector<pstsdk::byte>>(nprop);

Oct 12, 2011 at 7:07 AM

Thanks for your replies to both of my questions -  everything working as expected now.