Article View: adobe.indesign.sdk
Article #97Re: Retrive two byte string from indesign document
From: pallavik
Date: Thu, 26 Feb 2009 12:16
Date: Thu, 26 Feb 2009 12:16
15 lines
1025 bytes
1025 bytes
Hi ,
Thanks for reply.
Now I am able to convert uchar16 * to unsigned short *
unsigned short * usstr = NULL;
usstr = (unsigned short *)malloc(500 * sizeof(unsigned short));
int k =0;
while(iter != last)
{
* wstwobyte = *iter;
wchar_t wch = (* wstwobyte);
*usstr = (unsigned short)wch;
iter++;k++; wstwobyte++;usstr++;
}
*wstwobyte = (uchar16)'\0';
*usstr = (unsigned short)'\0';
Technical Details
Message-ID:
<59b7f8ee.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7f8ee.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f63e9,180bd1741f7dc361 X-Google-Attributes: gidf63e9,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: pallavik@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.indesign.sdk Subject: Re: Retrive two byte string from indesign document Message-ID: <59b7f8ee.3@webcrossing.la2eafNXanI> Date: Thu, 26 Feb 2009 04:16:46 -0800 References: <59b7f8ee.-1@webcrossing.la2eafNXanI> Lines: 15 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit