<?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[Funktion erwartet TCHAR [4096]]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich habe eine Funktion die TCHAR [4096] erwartet. Wie kann ich einen einfachen string dahin umwandeln?<br />
Ich steh irgendwie auf dem Schlauch...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163105/funktion-erwartet-tchar-4096</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 18:53:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163105.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Oct 2006 07:09:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktion erwartet TCHAR [4096] on Thu, 26 Oct 2006 07:09:30 GMT]]></title><description><![CDATA[<p>Hallo Leute,<br />
ich habe eine Funktion die TCHAR [4096] erwartet. Wie kann ich einen einfachen string dahin umwandeln?<br />
Ich steh irgendwie auf dem Schlauch...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161599</guid><dc:creator><![CDATA[frager]]></dc:creator><pubDate>Thu, 26 Oct 2006 07:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion erwartet TCHAR [4096] on Thu, 26 Oct 2006 07:18:56 GMT]]></title><description><![CDATA[<p>Versuch es mal so (ich hoffe es sind keine Fehler drin):</p>
<pre><code class="language-cpp">TCHAR szString[4096];
lstrcpy(szString,deinstring.c_str());
</code></pre>
<p>Edit: Sehe gerade, dass du mit c_str() wohl bei Unicode mit dem obigen Code Probleme bekommst - da musst du das dann erst in ein CHAR-Array kopieren und das dann ggf. noch nach Unicode umwandeln... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161602</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 26 Oct 2006 07:18:56 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion erwartet TCHAR [4096] on Thu, 26 Oct 2006 07:21:35 GMT]]></title><description><![CDATA[<p>Also ich verwende CXImage: <a href="http://www.xdp.it/cximage.htm" rel="nofollow">http://www.xdp.it/cximage.htm</a><br />
Dort gibt es folgende Struktur:</p>
<pre><code>typedef struct tagCxTextInfo
{
	TCHAR    text[4096]; ///&lt; text (char -&gt; TCHAR for UNICODE [Cesar M])
...
} CXTEXTINFO;
</code></pre>
<p>Diesem TCHAR[4096] möchte ich gerne einen Text zuweisen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161609</guid><dc:creator><![CDATA[frager]]></dc:creator><pubDate>Thu, 26 Oct 2006 07:21:35 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion erwartet TCHAR [4096] on Thu, 26 Oct 2006 07:42:40 GMT]]></title><description><![CDATA[<p>lstrcpy(text, TEXT(&quot;Hallo&quot;));</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1161627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1161627</guid><dc:creator><![CDATA[))]]></dc:creator><pubDate>Thu, 26 Oct 2006 07:42:40 GMT</pubDate></item></channel></rss>