<?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[AllocConsole() und cout]]></title><description><![CDATA[<p>Salve,</p>
<p>um während der Entwicklung einer Windowsanwendung mal schnell ein paar Werte überprüfen zu können, dachte ich mir, ich könne mit AllocConsole() und cout arbeiten.<br />
AllocConsole() erzeugt auch eine Konsole, aber cout gibt nichts darauf aus.<br />
Was muß ich dafür tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/232896/allocconsole-und-cout</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Apr 2026 08:42:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/232896.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Jan 2009 14:57:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to AllocConsole() und cout on Wed, 28 Jan 2009 14:57:08 GMT]]></title><description><![CDATA[<p>Salve,</p>
<p>um während der Entwicklung einer Windowsanwendung mal schnell ein paar Werte überprüfen zu können, dachte ich mir, ich könne mit AllocConsole() und cout arbeiten.<br />
AllocConsole() erzeugt auch eine Konsole, aber cout gibt nichts darauf aus.<br />
Was muß ich dafür tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1653891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1653891</guid><dc:creator><![CDATA[Belli]]></dc:creator><pubDate>Wed, 28 Jan 2009 14:57:08 GMT</pubDate></item><item><title><![CDATA[Reply to AllocConsole() und cout on Wed, 28 Jan 2009 15:53:57 GMT]]></title><description><![CDATA[<p>du musst erst alle kanäle auf die neue konsole leiten</p>
<pre><code class="language-cpp">#include &lt;io.h&gt;
#include &lt;fcntl.h&gt;

void snyc_with_console()
{
    int fh = open(&quot;CON&quot;, _O_WRONLY);
    *stdout = *fdopen(fh, &quot;w&quot;);
    setvbuf(stdout, 0, _IONBF, 0);

    fh = open(&quot;CON&quot;, _O_RDONLY);
    *stdin = *fdopen(fh, &quot;r&quot;);
    setvbuf(stdin, 0, _IONBF, 0);

    cout.sync_with_stdio();
    cin.sync_with_stdio();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1653904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1653904</guid><dc:creator><![CDATA[helferlein]]></dc:creator><pubDate>Wed, 28 Jan 2009 15:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to AllocConsole() und cout on Wed, 28 Jan 2009 15:27:10 GMT]]></title><description><![CDATA[<p>diese frage kommt auch jeden monat einmal. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1653918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1653918</guid><dc:creator><![CDATA[noobalert]]></dc:creator><pubDate>Wed, 28 Jan 2009 15:27:10 GMT</pubDate></item><item><title><![CDATA[Reply to AllocConsole() und cout on Wed, 28 Jan 2009 17:32:41 GMT]]></title><description><![CDATA[<p><a href="http://support.microsoft.com/kb/105305/en-us" rel="nofollow">http://support.microsoft.com/kb/105305/en-us</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1653989</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1653989</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Wed, 28 Jan 2009 17:32:41 GMT</pubDate></item><item><title><![CDATA[Reply to AllocConsole() und cout on Wed, 28 Jan 2009 17:39:46 GMT]]></title><description><![CDATA[<p>Wenns nur zum debuggen ist, nimm doch OutputDebugString()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1653993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1653993</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Wed, 28 Jan 2009 17:39:46 GMT</pubDate></item></channel></rss>