Click here to Skip to main content
12,076,925 members (47,279 online)
Rate this:
 
Please Sign up or sign in to vote.
Hi,

Using C++, I'm trying to use the People Tagging feature by setting the PersonDisplayName property. I've tried this code:

Tools::Check(piFrameEncode->GetMetadataQueryWriter(&piFrameQWriter));
		
// Add additional metadata.
PROPVARIANT value;
PropVariantInit(&value);
 
value.vt = VT_LPWSTR;
value.pwszVal= L"Thomas LEBRUN";
		
Tools::Check(piFrameQWriter->SetMetadataByName(L"/xmp/<xmpstruct>MP:RegionInfo/<xmpbag>MPRI:Regions/PersonDisplayName", &value));

Unfortunately, this code throws the follonwing exception: "Additional information: The parameter is incorrect."
If I change the metadata name and tried to use the "Title" property, all works fine.


Anyone see where is my error ?


Thanks!
Posted 29-Oct-12 10:31am
Edited 29-Oct-12 11:34am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You already posted this question here[^]; please use one forum only per question.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web03 | 2.8.160212.1 | Last Updated 29 Oct 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100