<?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[Borland C++ Builder 6 - Konsolenausgabe aus GUI Application]]></title><description><![CDATA[<p>Hallo!</p>
<p>Kann mir jemand weiterhelfen, bin am verzweifeln mit std::cout!<br />
Ich habe eine einfache GUI Anwendung im BCB 6 und will mit cout ein paar Debug-Daten ausgeben. Dafür gibt es ja OutputDebugString():</p>
<p>#include &lt;windows.h&gt;<br />
#include &lt;string&gt;<br />
#include &lt;iostream&gt;<br />
...</p>
<p>void __fastcall TForm1::Button1Click(TObject *Sender)<br />
{</p>
<p>OutputDebugString(&quot;Test&quot;); //Klappt wunderbar</p>
<p>string s = &quot;test2&quot;;<br />
OutputDebugString(s.c_str()); //akzeptiert keine STL-strings, deshalb konvertieren...</p>
<p>std::cout &lt;&lt; s; //Konsole öffnet sich nicht!<br />
}</p>
<p>Dann hab ich im EvemtLogFenster durch OutputDebugString die Ausgabe. Aber ich möchte lieber std::cout nutzen, weil ich da nicht jedesmal strings konvertieren muss! Visual Studio erzeugt da ein Ausgabefenster automatisch, wie geht das bei Borland???</p>
<p>Danke!</p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/186480/borland-c-builder-6-konsolenausgabe-aus-gui-application</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 15:18:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/186480.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jul 2007 13:05:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Borland C++ Builder 6 - Konsolenausgabe aus GUI Application on Mon, 09 Jul 2007 13:05:26 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Kann mir jemand weiterhelfen, bin am verzweifeln mit std::cout!<br />
Ich habe eine einfache GUI Anwendung im BCB 6 und will mit cout ein paar Debug-Daten ausgeben. Dafür gibt es ja OutputDebugString():</p>
<p>#include &lt;windows.h&gt;<br />
#include &lt;string&gt;<br />
#include &lt;iostream&gt;<br />
...</p>
<p>void __fastcall TForm1::Button1Click(TObject *Sender)<br />
{</p>
<p>OutputDebugString(&quot;Test&quot;); //Klappt wunderbar</p>
<p>string s = &quot;test2&quot;;<br />
OutputDebugString(s.c_str()); //akzeptiert keine STL-strings, deshalb konvertieren...</p>
<p>std::cout &lt;&lt; s; //Konsole öffnet sich nicht!<br />
}</p>
<p>Dann hab ich im EvemtLogFenster durch OutputDebugString die Ausgabe. Aber ich möchte lieber std::cout nutzen, weil ich da nicht jedesmal strings konvertieren muss! Visual Studio erzeugt da ein Ausgabefenster automatisch, wie geht das bei Borland???</p>
<p>Danke!</p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1321512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1321512</guid><dc:creator><![CDATA[Cyberbobby]]></dc:creator><pubDate>Mon, 09 Jul 2007 13:05:26 GMT</pubDate></item><item><title><![CDATA[Reply to Borland C++ Builder 6 - Konsolenausgabe aus GUI Application on Mon, 09 Jul 2007 13:52:48 GMT]]></title><description><![CDATA[<p>Wenn du eine GUI-Anwendung hast, dann hast du keine Konsole. cout funktioniert da also nicht.<br />
Erzeug dir doch deine eigene OutputDebugString-Funktion die AnsiStrings akzeptiert. Sieh auch mal hier<br />
<a href="http://bcbjournal.org/free_issue/vol8_num6.2.htm" rel="nofollow">http://bcbjournal.org/free_issue/vol8_num6.2.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1321556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1321556</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Mon, 09 Jul 2007 13:52:48 GMT</pubDate></item></channel></rss>