Click here to Skip to main content
15,885,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

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

C++
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
Updated 29-Oct-12 10:34am
v2

1 solution

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

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


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900