<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem: Unicode Verwendung ( wstring )]]></title><description><![CDATA[<p>Hi,</p>
<p>ich scheitere gerade an einer trivial aussehenden codestelle:</p>
<pre><code class="language-cpp">void FillSubs( wstring Path, Dir * Root ){
  WIN32_FIND_DATA FindData;
  fill( (char*)&amp;FindData, (char*)&amp;FindData + sizeof(WIN32_FIND_DATA), 0 );
// Besagte stelle  
  wstring Debug = ( ( Path + ( Root-&gt;DirName ) ) + TEXT(&quot;\\*&quot;) );
// ..
</code></pre>
<p>Path und DirName sind wstring objekte.</p>
<p>mein problem ist das wenn in Path und DirName etwas steht der letzte string in der operation ignoriert wird. ( man sieht die nutzlose verzweifelte klammerung )</p>
<p>normalerweise waren solche operationen nie ein problem, aber nun wo ich einmal UNICODE verwenden möchte sind sie es :x</p>
<p>( header definition )</p>
<pre><code class="language-cpp">#define UNICODE
#include &lt;windows.h&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
using namespace std;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/277307/problem-unicode-verwendung-wstring</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 01:43:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/277307.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Nov 2010 17:47:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem: Unicode Verwendung ( wstring ) on Tue, 16 Nov 2010 17:48:22 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich scheitere gerade an einer trivial aussehenden codestelle:</p>
<pre><code class="language-cpp">void FillSubs( wstring Path, Dir * Root ){
  WIN32_FIND_DATA FindData;
  fill( (char*)&amp;FindData, (char*)&amp;FindData + sizeof(WIN32_FIND_DATA), 0 );
// Besagte stelle  
  wstring Debug = ( ( Path + ( Root-&gt;DirName ) ) + TEXT(&quot;\\*&quot;) );
// ..
</code></pre>
<p>Path und DirName sind wstring objekte.</p>
<p>mein problem ist das wenn in Path und DirName etwas steht der letzte string in der operation ignoriert wird. ( man sieht die nutzlose verzweifelte klammerung )</p>
<p>normalerweise waren solche operationen nie ein problem, aber nun wo ich einmal UNICODE verwenden möchte sind sie es :x</p>
<p>( header definition )</p>
<pre><code class="language-cpp">#define UNICODE
#include &lt;windows.h&gt;
#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
using namespace std;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1981326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1981326</guid><dc:creator><![CDATA[Schurke]]></dc:creator><pubDate>Tue, 16 Nov 2010 17:48:22 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Unicode Verwendung ( wstring ) on Tue, 16 Nov 2010 17:55:54 GMT]]></title><description><![CDATA[<p>das problem lag hier:</p>
<pre><code class="language-cpp">wstring File = wstring( FindData.cFileName, FindData.cFileName + MAX_PATH );
</code></pre>
<p>ich habe forciert das er den gesammten string, also auch die abschluss zeichen übernimmt. damit hat er bei der string addition immer nach dem 2tem aufgehört</p>
<pre><code class="language-cpp">wstring File = wstring( FindData.cFileName );
</code></pre>
<p>löst das ganze, war dämlich.. habs selbst grad erst bemerkt :x leider zu spät</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1981329</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1981329</guid><dc:creator><![CDATA[Schurke]]></dc:creator><pubDate>Tue, 16 Nov 2010 17:55:54 GMT</pubDate></item></channel></rss>