<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : UNICODE data in non-UNICODE app...</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : UNICODE data in non-UNICODE app...]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 20:27:43 +0000</pubDate>
  <lastBuildDate>Wed, 02 Dec 2009 14:40:51 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15765</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[UNICODE data in non-UNICODE app... : I have some UTF-16 data that I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15765&amp;PID=55338&amp;title=unicode-data-in-nonunicode-app#55338</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 15765<br /><strong>Posted:</strong> 02 December 2009 at 2:40pm<br /><br />I have some UTF-16 data that I want to display in my CXTPReportControl, but CXTPReportRecordItemText()'s constructor only uses LPCTSTR, which is a char* without _UNICODE defined.&nbsp; It's impossible to redo the whole app as UNICODE.&nbsp; Is there any solution?&nbsp; For now, I'm converting the code to UTF-8, but I'm hoping that's temporary.&nbsp; Code that follows converts to UTF-8:<DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV><FONT size=2><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>USES_CONVERSION;</P><DIV><FONT size=2><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>vector</FONT></FONT><FONT size=2>&lt;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wstring</FONT></FONT><FONT size=2>&gt;::</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>iterator</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>lineNumber</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>for</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>lineNumber</FONT></FONT><FONT size=2> = </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>m_LineNumberNameList</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>begin</FONT></FONT><FONT size=2>();</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>lineNumber</FONT></FONT><FONT size=2> != </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>m_LineNumberNameList</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>end</FONT></FONT><FONT size=2>();</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>lineNumber</FONT></FONT><FONT size=2>++)</P><P>{</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>wstring</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>name</FONT></FONT><FONT size=2> = *(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>lineNumber</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>CXTPReportRecord</FONT></FONT><FONT size=2>* </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rec</FONT></FONT><FONT size=2> = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>CXTPReportRecord</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>InsertDefaultColumns</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rec</FONT></FONT><FONT size=2>);</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rec</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>AddItem</FONT></FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>new</FONT></FONT><FONT size=2> </FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>CXTPReportRecordItemText</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>W2A</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>name</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>c_str</FONT></FONT><FONT size=2>())));</P><P></FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>m_OrgReport</FONT></FONT><FONT size=2>.</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>AddRecord</FONT></FONT><FONT size=2>(</FONT><FONT color=#020002 size=2><FONT color=#020002 size=2>rec</FONT></FONT><FONT size=2>);</P><P>}</P></FONT></FONT></FONT></pre></td></tr></table></DIV></DIV>]]>
   </description>
   <pubDate>Wed, 02 Dec 2009 14:40:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15765&amp;PID=55338&amp;title=unicode-data-in-nonunicode-app#55338</guid>
  </item> 
 </channel>
</rss>