<?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[ShellExecute Konsolenanwendung - neues Fenster?]]></title><description><![CDATA[<p>Hi,<br />
ich habe 2 Konsolenanwendungen geschrieben, davon soll eine die andere ausführen (mit ShellExecute). Das funktioniert auch schoin gut, aber statt dass das eine programm ein neues fenster für das andere öffnet, wird das auszuführende Programm einfach im 1. fenster ausgegführt. Die Programme sollten aber in 2 getrennten Fenstern ausgeführt werden.<br />
Kann man das der Funktion ShellExecute irgendwie sagen dass sie ein neues Femster öffnen soll oder muss ich eine anere funktion verwenden? (WinExec habe ich auch schon probiert, selbes Resultat).</p>
<p>Hier mal der Code für das öffnende Programm:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;windows.h&gt;
#include&lt;conio.h&gt;
using namespace std;

int main()
{
ShellExecute(0, TEXT(&quot;open&quot;), TEXT(&quot;C://test.exe&quot;), NULL, NULL, SW_SHOWNORMAL);
}
</code></pre>
<p>Danke schonmal für die Hilfe,<br />
Andreas.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/242106/shellexecute-konsolenanwendung-neues-fenster</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 05:06:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/242106.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 May 2009 12:44:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellExecute Konsolenanwendung - neues Fenster? on Sat, 30 May 2009 12:44:17 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich habe 2 Konsolenanwendungen geschrieben, davon soll eine die andere ausführen (mit ShellExecute). Das funktioniert auch schoin gut, aber statt dass das eine programm ein neues fenster für das andere öffnet, wird das auszuführende Programm einfach im 1. fenster ausgegführt. Die Programme sollten aber in 2 getrennten Fenstern ausgeführt werden.<br />
Kann man das der Funktion ShellExecute irgendwie sagen dass sie ein neues Femster öffnen soll oder muss ich eine anere funktion verwenden? (WinExec habe ich auch schon probiert, selbes Resultat).</p>
<p>Hier mal der Code für das öffnende Programm:</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;
#include&lt;windows.h&gt;
#include&lt;conio.h&gt;
using namespace std;

int main()
{
ShellExecute(0, TEXT(&quot;open&quot;), TEXT(&quot;C://test.exe&quot;), NULL, NULL, SW_SHOWNORMAL);
}
</code></pre>
<p>Danke schonmal für die Hilfe,<br />
Andreas.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1718261</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1718261</guid><dc:creator><![CDATA[andi01]]></dc:creator><pubDate>Sat, 30 May 2009 12:44:17 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute Konsolenanwendung - neues Fenster? on Sat, 30 May 2009 12:47:59 GMT]]></title><description><![CDATA[<p>wieso im alten fenster ? Das alte schließt sich doch sofort wieder, das könnte so aussehen als wärs das selbe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1718266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1718266</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Sat, 30 May 2009 12:47:59 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute Konsolenanwendung - neues Fenster? on Sat, 30 May 2009 18:01:33 GMT]]></title><description><![CDATA[<p>danke, hat sich erledigt. es sah wirklich nur so aus=).<br />
Andreas.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1718373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1718373</guid><dc:creator><![CDATA[andi01]]></dc:creator><pubDate>Sat, 30 May 2009 18:01:33 GMT</pubDate></item></channel></rss>