<?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[Konvertierung von string in TCHAR]]></title><description><![CDATA[<p>Soweit ich sehe, eignet sich die Anweisung <em>TextOut</em> nicht für die Ausgabe von Variablen des Datentyps <strong>string</strong>. Da ich aber die Vorteile dieses Datentyps nutzen möchte (z.B. Addition von Strings), meine Frage:</p>
<p>Kann ich eine Variable vom Datentyp <strong>string</strong> in den Typ <strong>TCHAR</strong> umwandeln?</p>
<p>bzw.:</p>
<p>Gibt es einen Trick, wie ich mit <em>TextOut</em> doch <strong>string</strong> ausgeben kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148044/konvertierung-von-string-in-tchar</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 03:51:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148044.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 22 May 2006 19:27:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Konvertierung von string in TCHAR on Mon, 22 May 2006 19:27:39 GMT]]></title><description><![CDATA[<p>Soweit ich sehe, eignet sich die Anweisung <em>TextOut</em> nicht für die Ausgabe von Variablen des Datentyps <strong>string</strong>. Da ich aber die Vorteile dieses Datentyps nutzen möchte (z.B. Addition von Strings), meine Frage:</p>
<p>Kann ich eine Variable vom Datentyp <strong>string</strong> in den Typ <strong>TCHAR</strong> umwandeln?</p>
<p>bzw.:</p>
<p>Gibt es einen Trick, wie ich mit <em>TextOut</em> doch <strong>string</strong> ausgeben kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063065</guid><dc:creator><![CDATA[Alexander Rahm]]></dc:creator><pubDate>Mon, 22 May 2006 19:27:39 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von string in TCHAR on Mon, 22 May 2006 19:32:45 GMT]]></title><description><![CDATA[<p>ATL Makro: CA2CT<br />
Aber: Warum verwendest Du nicht wstring anstelle von string? Dann geht es auch mit UNICODE (was aktuell Dein Problem ist).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063068</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 22 May 2006 19:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von string in TCHAR on Mon, 22 May 2006 19:42:33 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">std::basic_string&lt;TCHAR&gt; s(TEXT(&quot;Hallo Welt&quot;));
TextOut(..., ..., ..., s.c_str(), ...);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1063078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063078</guid><dc:creator><![CDATA[..........]]></dc:creator><pubDate>Mon, 22 May 2006 19:42:33 GMT</pubDate></item><item><title><![CDATA[Reply to Konvertierung von string in TCHAR on Tue, 23 May 2006 16:57:35 GMT]]></title><description><![CDATA[<p>Was ein ATL-Makro ist, weiß ich leider nicht. Wie und wo ich solche aufrufe auch nicht.<br />
Was wstring betrifft: Das klappt nicht. Auch das wird mit einer Fehlermeldung quittiert. Der Befehl TextOut akzeptiert bei mir nur Variablen vom Datentyp TCHAR.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1063683</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1063683</guid><dc:creator><![CDATA[Alexander Rahm]]></dc:creator><pubDate>Tue, 23 May 2006 16:57:35 GMT</pubDate></item></channel></rss>