<?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[Bräuchte Erklärung (1)]]></title><description><![CDATA[<p>Hallo,</p>
<p>wozu eine Typdefinition gut ist, das weiss ich.. aber könnte mir jemand das hier erklären:</p>
<pre><code class="language-cpp">typedef TCHAR FAR * LPTSTR;
</code></pre>
<p>Was ist dieses FAR und was ist dieses TCHAR und warum bitte der Zeiger?</p>
<p>Danke im Voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/181041/bräuchte-erklärung-1</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 01:59:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181041.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 May 2007 12:56:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 13:00:39 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wozu eine Typdefinition gut ist, das weiss ich.. aber könnte mir jemand das hier erklären:</p>
<pre><code class="language-cpp">typedef TCHAR FAR * LPTSTR;
</code></pre>
<p>Was ist dieses FAR und was ist dieses TCHAR und warum bitte der Zeiger?</p>
<p>Danke im Voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281593</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281593</guid><dc:creator><![CDATA[clara774]]></dc:creator><pubDate>Wed, 09 May 2007 13:00:39 GMT</pubDate></item><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 13:01:51 GMT]]></title><description><![CDATA[<p>'FAR' ist ein Relikt aus der 16-Bit-Programmierung, als man noch zwischen near- und far-Zeigern unterscheiden konnte.</p>
<p>'TCHAR' ist ein typedef für char oder wchar_t, je nach UNICODE-Einstellungen für das Projekt (also der Typ für ein &quot;Zeichen&quot;).</p>
<p>'Zeiger auf <em>Zeichen</em>' ist die C-Darstellung für Strings.</p>
<p>=&gt; die Zeile definiert den Typ 'LPTSTR' als 'far-Zeiger auf (nullterminierte)TCHAR(-Arrays)' (die Teile in Klammern stehen nicht im typedef, sondern sind eher als C-typische Konvention zu sehen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281607</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 09 May 2007 13:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 13:06:37 GMT]]></title><description><![CDATA[<p>Hi clara,</p>
<p>als erstes bräuchtest Du wohl eine Erklärung, wie man Threads benennt.... :p</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281614</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Wed, 09 May 2007 13:06:37 GMT</pubDate></item><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 14:13:57 GMT]]></title><description><![CDATA[<p>Danke schonmal. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Noch ein paar Fragen:</p>
<ol>
<li>Was heißt wchar_t ausgeschrieben? Wo finde ich darüber Informationen was das genau ist?</li>
<li>wchar_t = unsigned short int?</li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/1281678</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281678</guid><dc:creator><![CDATA[clara774]]></dc:creator><pubDate>Wed, 09 May 2007 14:13:57 GMT</pubDate></item><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 14:18:46 GMT]]></title><description><![CDATA[<p>clara774 schrieb:</p>
<blockquote>
<p>Danke schonmal. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Noch ein paar Fragen:</p>
<ol>
<li>Was heißt wchar_t ausgeschrieben? Wo finde ich darüber Informationen was das genau ist?</li>
<li>wchar_t = unsigned short int?</li>
</ol>
</blockquote>
<p>wchar_t ist überhaupt kein int sondern eine &quot;besondere Version&quot; von char mit der man Zeichen darstellt die zb so wie die Chinesischen sind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281688</guid><dc:creator><![CDATA[Raxtor]]></dc:creator><pubDate>Wed, 09 May 2007 14:18:46 GMT</pubDate></item><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 14:23:29 GMT]]></title><description><![CDATA[<p>Und wie soll ich sonst</p>
<pre><code class="language-cpp">#ifndef _MAC
typedef wchar_t WCHAR;    // wc,   16-bit UNICODE character
#else
// some Macintosh compilers don't define wchar_t in a convenient location, or define it as a char
typedef unsigned short WCHAR;    // wc,   16-bit UNICODE character
#endif
</code></pre>
<p>interpretieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281692</guid><dc:creator><![CDATA[clara774]]></dc:creator><pubDate>Wed, 09 May 2007 14:23:29 GMT</pubDate></item><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 14:33:34 GMT]]></title><description><![CDATA[<p>Steht doch da:</p>
<blockquote>
<p>some Macintosh compilers don't define wchar_t in a convenient location, or define it as a char</p>
</blockquote>
<p>Es gibt ein paar Mac-Compiler die z.B. kein wchar_t kennen oder das wchar_t als alias auf ein unsigned short haben.</p>
<p>Aber das ist dann halt nicht ISO-C++-konform. Wir können hier nicht jeden Compiler auf jeder Paltform kennen. Deshalb gehen wir bei Antworten auf Beiträge vom ISO-C++-Standard aus. Und das ist auch gut so!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281705</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281705</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Wed, 09 May 2007 14:33:34 GMT</pubDate></item><item><title><![CDATA[Reply to Bräuchte Erklärung (1) on Wed, 09 May 2007 14:41:31 GMT]]></title><description><![CDATA[<p>Ach, so ist das gemeint. Dann verstehe ich das. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1281715</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1281715</guid><dc:creator><![CDATA[clara774]]></dc:creator><pubDate>Wed, 09 May 2007 14:41:31 GMT</pubDate></item></channel></rss>