<?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[Textcolor, ... klappt nicht]]></title><description><![CDATA[<p>Moin,</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;iostream.h&gt;
#include &lt;iomanip.h&gt;
#include &lt;conio.h&gt;

using namespace std;

int main ()
{   textbackground (RED);
    textcolor (BLUE);
    keybd_event(VK_MENU, 0x38, 0, 0);
    keybd_event(VK_RETURN, 0x1c, 0, 0);
    keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
    keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);
    cout &lt;&lt;&quot;Hallo &quot; &lt;&lt; endl;
}
</code></pre>
<p>Warum setzt der code bei mir die schriftfarbe nicht auf blau und die texthintergrundfarbe nicht auf rot???</p>
<p>Jannik</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/111481/textcolor-klappt-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 20:05:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/111481.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Jun 2005 15:04:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Wed, 01 Jun 2005 15:04:36 GMT]]></title><description><![CDATA[<p>Moin,</p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;iostream.h&gt;
#include &lt;iomanip.h&gt;
#include &lt;conio.h&gt;

using namespace std;

int main ()
{   textbackground (RED);
    textcolor (BLUE);
    keybd_event(VK_MENU, 0x38, 0, 0);
    keybd_event(VK_RETURN, 0x1c, 0, 0);
    keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
    keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);
    cout &lt;&lt;&quot;Hallo &quot; &lt;&lt; endl;
}
</code></pre>
<p>Warum setzt der code bei mir die schriftfarbe nicht auf blau und die texthintergrundfarbe nicht auf rot???</p>
<p>Jannik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/800491</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/800491</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Wed, 01 Jun 2005 15:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Wed, 01 Jun 2005 16:13:02 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=13" rel="nofollow">DOS und Win32-Konsole</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" 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/800517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/800517</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 01 Jun 2005 16:13:02 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Wed, 01 Jun 2005 21:08:17 GMT]]></title><description><![CDATA[<pre><code>SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY | BACKGROUND_RED | FOREGROUND_INTENSITY | FOREGROUND_BLUE);
system(&quot;cls&quot;);
</code></pre>
<p>hilft dir das vielleicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/800680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/800680</guid><dc:creator><![CDATA[DeathRow]]></dc:creator><pubDate>Wed, 01 Jun 2005 21:08:17 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 13:02:26 GMT]]></title><description><![CDATA[<p>Ältere Compiler bieten zum Teil keine vollständige conio.h mehr an, das heißt textcolor(), textbackground(), etc. sind nicht mehr vorhanden.</p>
<p>Stattdessen kannst du die Improved Console (Siehe FAQ) verwenden. Sie lässt sich ganz einfach anwenden und du musst dir nicht die WinAPI-Befehle auswendig merken die statt den Funktionen aus der conio.h verwendet werden müssen (Zum Beispiel das Setzen der Konsolentextfarbe im Beitrag vor mir).</p>
<p>Außerdem: &lt;iostream&gt; und &lt;iomanip&gt; statt &lt;iostream.h&gt; und &lt;iomanip.h&gt;</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801022</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 02 Jun 2005 13:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 13:23:39 GMT]]></title><description><![CDATA[<blockquote>
<p>Ältere Compiler bieten zum Teil keine vollständige conio.h mehr an, das heißt textcolor(), textbackground(), etc. sind nicht mehr vorhanden.</p>
<p>Stattdessen kannst du die Improved Console (Siehe FAQ) verwenden. Sie lässt sich ganz einfach anwenden und du musst dir nicht die WinAPI-Befehle auswendig merken die statt den Funktionen aus der conio.h verwendet werden müssen (Zum Beispiel das Setzen der Konsolentextfarbe im Beitrag vor mir).</p>
</blockquote>
<p>Bei mir steht in conio.h clrscr() und textcolor() drinnen.</p>
<p>Jannik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801039</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Thu, 02 Jun 2005 13:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 13:26:42 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/9380">@DeathRow</a></p>
<p>cool, das klappt!! Vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801042</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Thu, 02 Jun 2005 13:26:42 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 13:39:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/869">@C</a>++-Freak: Ja, aber vielleicht sind sie ganz einfach nicht mehr funktionstüchtig.</p>
<p>DeathRow schrieb:</p>
<blockquote>
<p>SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),BACKGROUND_INTENSITY | BACKGROUND_RED | FOREGROUND_INTENSITY | FOREGROUND_BLUE);</p>
</blockquote>
<p>Um dir das zu Sparen, gibts die Improved Console, aber warum einfach wenns auch schwer geht ;). Das hier hingegen ist böse:</p>
<pre><code class="language-cpp">system(&quot;cls&quot;);
</code></pre>
<p>So löscht man den Bildschirm nicht, das ist Mist. Es funktioniert zwar dummerweise in seltenen Fällen, aber darauf verlassen kann man sich nicht.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801061</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 02 Jun 2005 13:39:14 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 13:53:51 GMT]]></title><description><![CDATA[<p>Wie geht den das mit der improved Console??</p>
<p>Ich habe ma gelesen man muss einfach die drei improved dateien (Hab grade ka wie die heissen) plus seinen geschriebenen code zusammen kompilieren.</p>
<p>Jannik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801089</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801089</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Thu, 02 Jun 2005 13:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 13:59:16 GMT]]></title><description><![CDATA[<p>Hier gibts Anleitungen: <a href="http://ic.sidewindershome.net" rel="nofollow">http://ic.sidewindershome.net</a></p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801096</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 02 Jun 2005 13:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 14:44:37 GMT]]></title><description><![CDATA[<p>Okay, ich hab es jetzt so gemacht wie auf der seite, nur das kompilieren geht nicht. (Ich hab den kostenlosen compiler Borland C++ Compiler 5.5)<br />
es kommen immer die fehlermeldungen:</p>
<p>Unresolved external ic::con</p>
<p>und</p>
<p>Unresolved external ic::Console::setTextColor(unsigned short)</p>
<p>Jannik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801147</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Thu, 02 Jun 2005 14:44:37 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 14:54:44 GMT]]></title><description><![CDATA[<p>a) Bist du dem Programmier-Anfänger-Tutorial gefolgt?<br />
Hast du auch ganz sicher die ic.cpp mit ins Projekt eingefügt?</p>
<p>b) Du bist dem Standard-Weg gefolgt und hast eine Library erstellt?<br />
Hast du die Library auch ganz sicher in das Projekt miteingebunden?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801153</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 02 Jun 2005 14:54:44 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 14:57:46 GMT]]></title><description><![CDATA[<p>in a) bin ich mir sicher.</p>
<p>Welche Library soll ich mit einbinden?? soll ich eine neue machen und die einbinden??</p>
<p>Jannik</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801155</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Thu, 02 Jun 2005 14:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 17:38:07 GMT]]></title><description><![CDATA[<blockquote>
<p>und hast eine Library erstellt?</p>
</blockquote>
<p>--&gt; im anfänger tut steht dass ich kein library brauche</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801278</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801278</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Thu, 02 Jun 2005 17:38:07 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 17:45:15 GMT]]></title><description><![CDATA[<p>Du kannst ja auch nur entweder a oder b gemacht haben. Also wenn du a gemacht hast, sollst du nochmal prüfen ob du alle Dateien eingebunden hast. Wenn du b gemacht hast, sollst du prüfen ob die Library eingebunden ist.</p>
<p>Da du a gemacht hast, und dir sicher bist alle Dateien eingebudnen zu haben scheint alles zu stimmen...</p>
<p>Ich verschieb dich mal kurz ins BCB-Forum, vielleicht wissen die ob der in der Version 5.5 noch Probleme mit Namespaces hat, dann kann ich die rausnehmen für dich <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>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801283</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801283</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 02 Jun 2005 17:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Thu, 02 Jun 2005 17:45:55 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=2822" rel="nofollow">SideWinder</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=13" rel="nofollow">DOS und Win32-Konsole</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">Borland C++ Builder (VCL/CLX)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" 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/801285</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801285</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 02 Jun 2005 17:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Fri, 03 Jun 2005 13:33:10 GMT]]></title><description><![CDATA[<p>Muss ich (bei a also anfänger tut) alle dateien also ic.cpp, ic.hpp und ic.h einbinden?? (Hab ich gemacht)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/801828</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/801828</guid><dc:creator><![CDATA[C++Freak]]></dc:creator><pubDate>Fri, 03 Jun 2005 13:33:10 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Sat, 04 Jun 2005 16:32:21 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>kann mir niemand helfen??</p>
<p>xehon ist mein neuer Name</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802243</guid><dc:creator><![CDATA[xehon]]></dc:creator><pubDate>Sat, 04 Jun 2005 16:32:21 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Sat, 04 Jun 2005 16:45:30 GMT]]></title><description><![CDATA[<p>Weiß niemand ob der BCB5.5 Namespaces unterstützt?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802258</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sat, 04 Jun 2005 16:45:30 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Sat, 04 Jun 2005 18:59:23 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>doch der BCB5 versteht Namespaces, ich setzte selber welche ein. Ich habe keine Abweichung vom Standard festegstellt.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802349</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 04 Jun 2005 18:59:23 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Sat, 04 Jun 2005 19:35:55 GMT]]></title><description><![CDATA[<p>Sonst jemand eine Ahnung warum es sich nicht compilieren lässt?</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802362</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sat, 04 Jun 2005 19:35:55 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Sat, 04 Jun 2005 19:47:52 GMT]]></title><description><![CDATA[<p>Im Freeware-Compiler gibt es keine Projektverwaltung, über die man Libs etc. einbinden könnte, zumindest keine dem BCB vergleichbare. Deshalb bist du mit der Frage wohl im falschen Forum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802371</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sat, 04 Jun 2005 19:47:52 GMT</pubDate></item><item><title><![CDATA[Reply to Textcolor, ... klappt nicht on Sun, 05 Jun 2005 15:01:29 GMT]]></title><description><![CDATA[<p>Okay, dann leg ich mir mal irgendwann den (kostenden) Compiler von Borland zu.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/802816</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/802816</guid><dc:creator><![CDATA[xehon]]></dc:creator><pubDate>Sun, 05 Jun 2005 15:01:29 GMT</pubDate></item></channel></rss>