<?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[typedef, aufeinmal krieg ich ne Fehlermeldung]]></title><description><![CDATA[<p>Hallo,<br />
in meinem Programm benutze ich einen Datentyp BYTE um Daten über die serielle schnittstelle an ein Gerät zu senden.<br />
Nun bekomme ich seit kurzem jede Menge Fehlermeldungen die darauf deuten das BYTE nicht mehr bekannt ist, obwohl ich gar nichts in dieser Hinsicht an meinem Programm geändert habe.</p>
<pre><code class="language-cpp">BYTE HARTCOMMAND_211[14] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x82, 0xAA, 0x00,         //Modem Power On
		                        0x00, 0x00, 0x00, 0xD3, 0x00, 0xFB};
	BYTE HARTCOMMAND_000[10] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x02, 0x80, 0x00, 0x00, 0x82};   // Get the adress of device
</code></pre>
<p>Bei diesen beiden Zeilen bekomme ich die Fehlermeldung &quot;{:falscher Syntax&quot;<br />
Wenn ich nun ein</p>
<pre><code class="language-cpp">typedef unsigned char BYTE
</code></pre>
<p>einfüge klappts wieder.<br />
Nur müsste ich das in sehr vielen Funktionen einfügen.</p>
<p>Wo könnte das ursprüngliche typedef gestanden haben, denn ich habe es nicht selbst hinzugefügt?</p>
<p>Wie kann ich dieses typedef unsigned char BYTE implementieren das es von jeder Methode in meinem Programm erkannt wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174037/typedef-aufeinmal-krieg-ich-ne-fehlermeldung</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 12:03:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174037.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Feb 2007 12:10:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Thu, 22 Feb 2007 12:10:49 GMT]]></title><description><![CDATA[<p>Hallo,<br />
in meinem Programm benutze ich einen Datentyp BYTE um Daten über die serielle schnittstelle an ein Gerät zu senden.<br />
Nun bekomme ich seit kurzem jede Menge Fehlermeldungen die darauf deuten das BYTE nicht mehr bekannt ist, obwohl ich gar nichts in dieser Hinsicht an meinem Programm geändert habe.</p>
<pre><code class="language-cpp">BYTE HARTCOMMAND_211[14] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x82, 0xAA, 0x00,         //Modem Power On
		                        0x00, 0x00, 0x00, 0xD3, 0x00, 0xFB};
	BYTE HARTCOMMAND_000[10] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x02, 0x80, 0x00, 0x00, 0x82};   // Get the adress of device
</code></pre>
<p>Bei diesen beiden Zeilen bekomme ich die Fehlermeldung &quot;{:falscher Syntax&quot;<br />
Wenn ich nun ein</p>
<pre><code class="language-cpp">typedef unsigned char BYTE
</code></pre>
<p>einfüge klappts wieder.<br />
Nur müsste ich das in sehr vielen Funktionen einfügen.</p>
<p>Wo könnte das ursprüngliche typedef gestanden haben, denn ich habe es nicht selbst hinzugefügt?</p>
<p>Wie kann ich dieses typedef unsigned char BYTE implementieren das es von jeder Methode in meinem Programm erkannt wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233212</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233212</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 22 Feb 2007 12:10:49 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Thu, 22 Feb 2007 12:14:26 GMT]]></title><description><![CDATA[<p>Hast Du windows.h included?<br />
BYTE ist kein normaler Datentyp, den C++ einfach so mit sich bringt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233220</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233220</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 22 Feb 2007 12:14:26 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Thu, 22 Feb 2007 12:15:57 GMT]]></title><description><![CDATA[<p>hab ich nicht mehr included, hat sich wohl selbstständig gelöscht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233222</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233222</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 22 Feb 2007 12:15:57 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Thu, 22 Feb 2007 12:23:03 GMT]]></title><description><![CDATA[<p>hab windows.h jetzt included, doch es funktioniert nicht.<br />
woran könnte es denn noch liegen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233230</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 22 Feb 2007 12:23:03 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Thu, 22 Feb 2007 14:40:00 GMT]]></title><description><![CDATA[<p>Wo hast Du windows.h included?<br />
Vor der stdafx.h ? dann ist das logisc. In der stdafx.h, dann wundert es mich.</p>
<p>Da Du in dem MFC Forum bist... Ist es ein MFC Programm? Dann vergiss windows.h. In diesem Fall musst Du agx.h includen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233355</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 22 Feb 2007 14:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Thu, 22 Feb 2007 14:46:56 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>In diesem Fall musst Du agx.h includen!</p>
</blockquote>
<p>Meinst du afx.h?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233364</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Thu, 22 Feb 2007 14:46:56 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Thu, 22 Feb 2007 17:02:59 GMT]]></title><description><![CDATA[<p>Natürlich afx.h G liegt einfach zu nahe bei F!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233492</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:02:59 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Tue, 27 Feb 2007 11:47:01 GMT]]></title><description><![CDATA[<p>Ist ein MFC Programm.<br />
stdafx.h habe ich in jeder Datei inkludiert.<br />
Dann hab ich mal versucht windows.h in stdafx.h zu includieren, doch dann krieg ich die Fehlermeldung windows.h already included.<br />
afx.h zu includieren funktioniert auch nicht.<br />
ich habe keine Ahnung was da los ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1236146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1236146</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 27 Feb 2007 11:47:01 GMT</pubDate></item><item><title><![CDATA[Reply to typedef, aufeinmal krieg ich ne Fehlermeldung on Wed, 28 Feb 2007 08:02:44 GMT]]></title><description><![CDATA[<p>Hat denn niemand eine Ahnung was hier falsch sein könnte?<br />
Kann mir niemand weiter helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1236583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1236583</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Wed, 28 Feb 2007 08:02:44 GMT</pubDate></item></channel></rss>