<?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[char * zu LPCWSTR &amp;lt;&amp;lt;&amp;lt; GELÖST]]></title><description><![CDATA[<p>wie convertiere ich char* zu LPCWSTR ?</p>
<p>bitte um hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/278791/char-zu-lpcwstr-lt-lt-lt-gelöst</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 01:22:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/278791.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Dec 2010 11:23:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to char * zu LPCWSTR &amp;lt;&amp;lt;&amp;lt; GELÖST on Mon, 13 Dec 2010 11:32:42 GMT]]></title><description><![CDATA[<p>wie convertiere ich char* zu LPCWSTR ?</p>
<p>bitte um hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1993650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1993650</guid><dc:creator><![CDATA[buntehaare]]></dc:creator><pubDate>Mon, 13 Dec 2010 11:32:42 GMT</pubDate></item><item><title><![CDATA[Reply to char * zu LPCWSTR &amp;lt;&amp;lt;&amp;lt; GELÖST on Mon, 13 Dec 2010 11:28:38 GMT]]></title><description><![CDATA[<p>Der Datentyp heißt &quot;Long Pointer Char Wide String&quot;. Du solltest dir die Funktion MultiByteToWideChar() anschauen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1993653</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1993653</guid><dc:creator><![CDATA[LPCWSTR]]></dc:creator><pubDate>Mon, 13 Dec 2010 11:28:38 GMT</pubDate></item><item><title><![CDATA[Reply to char * zu LPCWSTR &amp;lt;&amp;lt;&amp;lt; GELÖST on Mon, 13 Dec 2010 11:31:40 GMT]]></title><description><![CDATA[<p>MSDN <a href="http://msdn.microsoft.com/en-us/library/ms235631.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms235631.aspx</a></p>
<pre><code class="language-cli">char * ptrTorecbuff= &quot;This is a test!&quot;;    

size_t newsize = strlen(ptrTorecbuff) + 1;

    // The following creates a buffer large enough to contain 
    // the exact number of characters in the original string
    // in the new format. If you want to add more characters
    // to the end of the string, increase the value of newsize
    // to increase the size of the buffer.
    wchar_t * wcstring = new wchar_t[newsize];

    // Convert char* string to a wchar_t* string.
    size_t convertedChars = 0;
    mbstowcs_s(&amp;convertedChars, wcstring, newsize, ptrTorecbuff, _TRUNCATE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1993654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1993654</guid><dc:creator><![CDATA[buntehaare]]></dc:creator><pubDate>Mon, 13 Dec 2010 11:31:40 GMT</pubDate></item><item><title><![CDATA[Reply to char * zu LPCWSTR &amp;lt;&amp;lt;&amp;lt; GELÖST on Mon, 13 Dec 2010 12:25:34 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/260205-10" rel="nofollow">http://www.c-plusplus.net/forum/260205-10</a><br />
<a href="http://www.c-plusplus.net/forum/276277" rel="nofollow">http://www.c-plusplus.net/forum/276277</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1993690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1993690</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Mon, 13 Dec 2010 12:25:34 GMT</pubDate></item></channel></rss>