Quantcast
Channel: Adobe Community: Message List - XMP SDK
Viewing all articles
Browse latest Browse all 801

Re: Unicode

$
0
0

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...


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>