Does the SDK really support "#define TXMP_STRING_TYPE std::wstring" ?
When I tried to compile my application program with that option, I got many errors including the following one quoted below.
(from SDK version CC201607 TXMPMeta.incl_cpp line 78)
XMP_MethodIntro(TXMPMeta,void)::SetClientString( void * clientPtr, XMP_StringPtr valuePtr, XMP_StringLen valueLen ) {
tStringObj * clientStr = (tStringObj*) clientPtr;clientStr->assign ( valuePtr, valueLen ); // **** Error ****
}
(Where XMP_StringPtr is typedef'ed to "const char*" regardless of TXMP_STRING_TYPE and tStringObj is TXMP_STRING_TYPE)
Basically, SDK code is calling std::wstrig's assign() with its first parameter "char *" instead of "wchar_t *".
I'm seeing this error with Visual C++ 2015, but I don't think situation is same with other compilers...