<?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[C2143 bei enumeration]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich arbeite unter Microsoft Visual Studio 2005 mit MFC. Folgendes is aber kein MFC-Problem.</p>
<p>I verwende für mein Projekt libmsn von Mark Rowe. Doch vieles wurde da vorm Release nicht ganz fertig entwickelt. So erzeugt folgender Code eine Liste von Fehlern:</p>
<pre><code class="language-cpp">52 enum CharacterSet
53		{
54            ANSI_CHARSET = 0x00,
55            DEFAULT_CHARSET = 0x01,
56            SYMBOL_CHARSET = 0x02,
57            MAC_CHARSET = 0x4d,
58            SHIFTJIS_CHARSET = 0x80,
59            HANGEUL_CHARSET = 0x81,
60            JOHAB_CHARSET = 0x82,
61            GB2312_CHARSET = 0x86,
62            CHINESEBIG5_CHARSET = 0x88,
63            GREEK_CHARSET = 0xa1,
64            TURKISH_CHARSET = 0xa2,
65            VIETNAMESE_CHARSET = 0xa3,
66            HEBREW_CHARSET = 0xb1,
67            ARABIC_CHARSET = 0xb2,
68            BALTIC_CHARSET = 0xba,
69            RUSSIAN_CHARSET_DEFAULT = 0xcc,
70            THAI_CHARSET = 0xde,
71            EASTEUROPE_CHARSET = 0xee,
72            OEM_DEFAULT = 0xff
73        };
</code></pre>
<p>Errors:</p>
<blockquote>
<p>message.h(54) : error C2143: syntax error : missing '}' before 'constant'<br />
message.h(73) : error C2143: syntax error : missing ';' before '}'<br />
message.h(73) : error C2238: unexpected token(s) preceding ';'<br />
message.h(77) : error C2143: syntax error : missing '}' before '('<br />
message.h(77) : fatal error C1903: unable to recover from previous error(s); stopping compilation</p>
</blockquote>
<p>Meiner Ansicht nach liegt es an den Konstanten in hexadezimaler Schreibweise... Denn es gibt außerdem noch zwei andere Enumerationen, die keinen Fehler verursachen.<br />
I habe schon gegoogelt, doch habe bisher keine hilfreiche Ergebnisse gefunden.</p>
<p>Frohes Neues!</p>
<p>A-jage</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201578/c2143-bei-enumeration</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 17:40:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201578.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Jan 2008 15:03:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C2143 bei enumeration on Tue, 01 Jan 2008 15:03:53 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich arbeite unter Microsoft Visual Studio 2005 mit MFC. Folgendes is aber kein MFC-Problem.</p>
<p>I verwende für mein Projekt libmsn von Mark Rowe. Doch vieles wurde da vorm Release nicht ganz fertig entwickelt. So erzeugt folgender Code eine Liste von Fehlern:</p>
<pre><code class="language-cpp">52 enum CharacterSet
53		{
54            ANSI_CHARSET = 0x00,
55            DEFAULT_CHARSET = 0x01,
56            SYMBOL_CHARSET = 0x02,
57            MAC_CHARSET = 0x4d,
58            SHIFTJIS_CHARSET = 0x80,
59            HANGEUL_CHARSET = 0x81,
60            JOHAB_CHARSET = 0x82,
61            GB2312_CHARSET = 0x86,
62            CHINESEBIG5_CHARSET = 0x88,
63            GREEK_CHARSET = 0xa1,
64            TURKISH_CHARSET = 0xa2,
65            VIETNAMESE_CHARSET = 0xa3,
66            HEBREW_CHARSET = 0xb1,
67            ARABIC_CHARSET = 0xb2,
68            BALTIC_CHARSET = 0xba,
69            RUSSIAN_CHARSET_DEFAULT = 0xcc,
70            THAI_CHARSET = 0xde,
71            EASTEUROPE_CHARSET = 0xee,
72            OEM_DEFAULT = 0xff
73        };
</code></pre>
<p>Errors:</p>
<blockquote>
<p>message.h(54) : error C2143: syntax error : missing '}' before 'constant'<br />
message.h(73) : error C2143: syntax error : missing ';' before '}'<br />
message.h(73) : error C2238: unexpected token(s) preceding ';'<br />
message.h(77) : error C2143: syntax error : missing '}' before '('<br />
message.h(77) : fatal error C1903: unable to recover from previous error(s); stopping compilation</p>
</blockquote>
<p>Meiner Ansicht nach liegt es an den Konstanten in hexadezimaler Schreibweise... Denn es gibt außerdem noch zwei andere Enumerationen, die keinen Fehler verursachen.<br />
I habe schon gegoogelt, doch habe bisher keine hilfreiche Ergebnisse gefunden.</p>
<p>Frohes Neues!</p>
<p>A-jage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428851</guid><dc:creator><![CDATA[a-jage]]></dc:creator><pubDate>Tue, 01 Jan 2008 15:03:53 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Tue, 01 Jan 2008 15:59:56 GMT]]></title><description><![CDATA[<p>a-jage schrieb:</p>
<blockquote>
<p>Ich arbeite unter Microsoft Visual Studio 2005 mit MFC. Folgendes is aber kein MFC-Problem.</p>
</blockquote>
<p>das erklärt, warum du im c++-builder-forum postest.</p>
<blockquote>
<p>Meiner Ansicht nach liegt es an den Konstanten in hexadezimaler Schreibweise...</p>
</blockquote>
<p>tut es nicht. es liegt vermutlich daran, dass einige oder alle konstanten schon mit #define angelegt wurden (durch windows.h).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428873</guid><dc:creator><![CDATA[reinterpreter]]></dc:creator><pubDate>Tue, 01 Jan 2008 15:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Tue, 01 Jan 2008 16:05:07 GMT]]></title><description><![CDATA[<p>ya sorry... hab auch grad erst gesehn dass i im vcl board poste. könnten die moderator es vielleicht verschieben..?</p>
<p>und wie sollte i dieses Problem lösen..? diese enum-liste löschen..?</p>
<p>A-jage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428876</guid><dc:creator><![CDATA[a-jage]]></dc:creator><pubDate>Tue, 01 Jan 2008 16:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Tue, 01 Jan 2008 18:19:52 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-437.html" rel="nofollow">Jansen</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL (C++ Builder)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-1.html" rel="nofollow">MFC (Visual C++)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428920</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 01 Jan 2008 18:19:52 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Tue, 01 Jan 2008 19:02:38 GMT]]></title><description><![CDATA[<p>Ok... habe festgestellt dass jeder identifier bereits in wingdi.h definiert ist...</p>
<p>Was soll i nun machen..? Soll i die enum liste löschen oder...?</p>
<p>A-jage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428940</guid><dc:creator><![CDATA[a-jage]]></dc:creator><pubDate>Tue, 01 Jan 2008 19:02:38 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Wed, 02 Jan 2008 07:17:20 GMT]]></title><description><![CDATA[<p>Wenn diese defines aus der WINAPI kommen dann würde ich Sie in keinem Fall neu definieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429078</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429078</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 02 Jan 2008 07:17:20 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Thu, 03 Jan 2008 12:57:54 GMT]]></title><description><![CDATA[<p>Ok, das heißt die enum liste löschen..(?)</p>
<p>A-jage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429913</guid><dc:creator><![CDATA[a-jage]]></dc:creator><pubDate>Thu, 03 Jan 2008 12:57:54 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Thu, 03 Jan 2008 13:03:16 GMT]]></title><description><![CDATA[<p>Die enums klein schreiben. Das Problem hatte ich damals auch schon und seit dem schreibe ich Konstanten und Enums klein. Denn dummerweise werden schon Makros komplett groß geschrieben. Und Makros are Evil und das wird hier mal wieder deutlich.</p>
<pre><code class="language-cpp">enum CharacterSet
        {
            ansi_charset = 0x00,
            default_charset = 0x01,
            symbol_charset = 0x02,
...
};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1429916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429916</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Thu, 03 Jan 2008 13:03:16 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Thu, 03 Jan 2008 13:56:52 GMT]]></title><description><![CDATA[<p>Ist eh IMO etwas sinnlos da nochmal charset hinter zu setzen, da durch</p>
<pre><code class="language-cpp">enum characterset
{
	ansi = 0x00,
	normal = 0x01,
	symbol = 0x02,
	mac = 0x4d,
	shiftjis = 0x80,
	hangeul = 0x81,
	johab = 0x82,
	gb2312 = 0x86,
	chinesebig5 = 0x88,
	greek = 0xa1,
	turkish = 0xa2,
	vietnamese = 0xa3,
	hebrew = 0xb1,
	arabic = 0xb2,
	baltic = 0xba,
	russian = 0xcc,
	thai = 0xde,
	easteuropte = 0xee,
	oem = 0xff
};
</code></pre>
<p>und dann characterset::greek ja schon deutlich wird, das es ein charset ist, und zwar greek.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429971</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 03 Jan 2008 13:56:52 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Thu, 03 Jan 2008 14:14:20 GMT]]></title><description><![CDATA[<p>Hab ich auch gedacht, aber dummerweise ist characterset::greek laut MSVC2005-Warning nicht standardkonform... auch wenn er es noch durchlässt. Wobei ich bei mir auch _charset weg gelassen hätte. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1429990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1429990</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Thu, 03 Jan 2008 14:14:20 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Thu, 03 Jan 2008 14:27:51 GMT]]></title><description><![CDATA[<p>Und warum definierst Du die alle nochmal wenn sie bereits in der WINAPI drin sind?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1430003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430003</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 03 Jan 2008 14:27:51 GMT</pubDate></item><item><title><![CDATA[Reply to C2143 bei enumeration on Thu, 03 Jan 2008 15:18:51 GMT]]></title><description><![CDATA[<p>Also, _i_ hab sie nicht neu definiert. <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="🙂"
    /> So stand es in libmsn gecodet...</p>
<p>Aber i könnte doch - an Artchi - das, was bereits definiert wurde, und wo gleich sind auch löschen oder..?</p>
<p>A-jage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1430049</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1430049</guid><dc:creator><![CDATA[a-jage]]></dc:creator><pubDate>Thu, 03 Jan 2008 15:18:51 GMT</pubDate></item></channel></rss>