<?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[DWORD als formatierten Sting (LPCTSTR) übergeben?]]></title><description><![CDATA[<p>Hi,</p>
<p>ich versuche verzweifelt, ein DWORD in einen Unicode-String umzuwandeln, um dann einen entsprechenden Pointer vom Typ LPCTSTR übergeben zu können.<br />
Vom Prinzip her also so etwas:</p>
<pre><code>DWORD dw = 42;
CString str = TEXT(&quot;%d&quot;, dw);
doSomething((LPCTSTR)str);
</code></pre>
<p>Habt ihr da eine Idee?</p>
<p>Gruß, Thomas.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/145858/dword-als-formatierten-sting-lpctstr-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 04:47:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/145858.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 May 2006 22:19:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DWORD als formatierten Sting (LPCTSTR) übergeben? on Mon, 01 May 2006 22:20:09 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich versuche verzweifelt, ein DWORD in einen Unicode-String umzuwandeln, um dann einen entsprechenden Pointer vom Typ LPCTSTR übergeben zu können.<br />
Vom Prinzip her also so etwas:</p>
<pre><code>DWORD dw = 42;
CString str = TEXT(&quot;%d&quot;, dw);
doSomething((LPCTSTR)str);
</code></pre>
<p>Habt ihr da eine Idee?</p>
<p>Gruß, Thomas.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049286</guid><dc:creator><![CDATA[Thomas++]]></dc:creator><pubDate>Mon, 01 May 2006 22:20:09 GMT</pubDate></item><item><title><![CDATA[Reply to DWORD als formatierten Sting (LPCTSTR) übergeben? on Mon, 01 May 2006 23:26:21 GMT]]></title><description><![CDATA[<p>Ich glaube, ich habs:</p>
<pre><code>DWORD z = 42;
TCHAR str[16];
_stprintf(str, TEXT(&quot;Zahl: %d&quot;), z);
doSomething((LPCTSTR)str);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1049297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049297</guid><dc:creator><![CDATA[Thomas++]]></dc:creator><pubDate>Mon, 01 May 2006 23:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to DWORD als formatierten Sting (LPCTSTR) übergeben? on Tue, 02 May 2006 05:21:48 GMT]]></title><description><![CDATA[<p>Ja, wenn schon CString, dann bitte doch:</p>
<pre><code class="language-cpp">CString str;
str.Format(_T(&quot;%d&quot;), z)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1049309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049309</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 02 May 2006 05:21:48 GMT</pubDate></item><item><title><![CDATA[Reply to DWORD als formatierten Sting (LPCTSTR) übergeben? on Tue, 02 May 2006 17:35:04 GMT]]></title><description><![CDATA[<p>Danke Jochen, das schaut doch schon viel übersichtlicher aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1049777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1049777</guid><dc:creator><![CDATA[Thomas++]]></dc:creator><pubDate>Tue, 02 May 2006 17:35:04 GMT</pubDate></item></channel></rss>