<?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[Unsichtbare Shellaufrufe??]]></title><description><![CDATA[<p>Hallo,<br />
ich würde gerne in meinem Programm (MFC, sollte aber egal sein oder? Hoffe ich bin hier im richtigen Bereich) eine andere .exe aufrufen. Bis jetzt mache ich das mit</p>
<pre><code class="language-cpp">system(&quot;start.exe&quot;);
</code></pre>
<p>das geht auch, nur erscheint dann immer eine neue DosBox, das sieht nicht so dolle aus. Das geht doch auch sicher so, daß kein Fenster angezeigt wird oder?<br />
Wäre super wenn mir da jemand ein Codeschnippsel posten könnte.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/132265/unsichtbare-shellaufrufe</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 06:20:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/132265.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jan 2006 13:52:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Mon, 09 Jan 2006 13:53:51 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich würde gerne in meinem Programm (MFC, sollte aber egal sein oder? Hoffe ich bin hier im richtigen Bereich) eine andere .exe aufrufen. Bis jetzt mache ich das mit</p>
<pre><code class="language-cpp">system(&quot;start.exe&quot;);
</code></pre>
<p>das geht auch, nur erscheint dann immer eine neue DosBox, das sieht nicht so dolle aus. Das geht doch auch sicher so, daß kein Fenster angezeigt wird oder?<br />
Wäre super wenn mir da jemand ein Codeschnippsel posten könnte.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/961736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/961736</guid><dc:creator><![CDATA[DarkSchwabe]]></dc:creator><pubDate>Mon, 09 Jan 2006 13:53:51 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Mon, 09 Jan 2006 13:58:28 GMT]]></title><description><![CDATA[<p>CreateProcess mit STARTUPINFO dwFlags = STARTF_USESHOWWINDOW und wShowWindow = SW_HIDE</p>
]]></description><link>https://www.c-plusplus.net/forum/post/961740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/961740</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 09 Jan 2006 13:58:28 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Tue, 10 Jan 2006 08:52:35 GMT]]></title><description><![CDATA[<p>okay, danke das funktioniert. Aber geht das nicht einfacher. Ich es muß nicht unbedingt ein extra Prozess generiert werden. Lieber wäre es mir sogar wenn das nicht passieren würde.<br />
Geht das vielleicht mit einem _spawn Aufruf?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962421</guid><dc:creator><![CDATA[DarkSchwabe]]></dc:creator><pubDate>Tue, 10 Jan 2006 08:52:35 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Tue, 10 Jan 2006 09:03:12 GMT]]></title><description><![CDATA[<p>Wie &quot;extra Prozess&quot; !????<br />
Willst Du nun einen externen Prozess starten oder nicht????</p>
<p>Was glaubst Du was &quot;system&quot; bzw. &quot;spawn&quot; machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962428</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 10 Jan 2006 09:03:12 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Tue, 10 Jan 2006 09:16:49 GMT]]></title><description><![CDATA[<p>hmm.. stimmt, da hast du auch wieder recht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /><br />
Ist nur so, daß ich für Create Process elends viel Code brauche. Spawn wäre nur 1 Zeile (falls es damit geht). Das wichtige für mich ist, daß ich aus MFC und einer Konsolenanwendung eine .exe ausführen kann ohne, daß ein Dosfenster aufgeht.<br />
Naja sonst nehm ich halt das Create Process sieht zwar etwas wild aus, aber es geht *G*. Wenn die exe fertig ist muß ich aber nichts machen wie &quot;deleteProcess&quot; oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962435</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962435</guid><dc:creator><![CDATA[DarkSchwabe]]></dc:creator><pubDate>Tue, 10 Jan 2006 09:16:49 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Tue, 10 Jan 2006 09:21:52 GMT]]></title><description><![CDATA[<p>Wartest Du etwa, biss die EXE fertig ist? Das CreateProcess kommt ja sofort zurück, auch wenn die EXE sich noch nicht beendet hat!<br />
In der zurückgegebenen PROCESS_INFORMATION musst Du aber die beiden Handles mittels CloseHandle schliessen... sonst hast Du ein kleines Handle-Leak...</p>
<p>Siehe auch:<br />
<a href="http://msdn.microsoft.com/library/en-us/dllproc/base/creating_processes.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/dllproc/base/creating_processes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/962438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962438</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 10 Jan 2006 09:21:52 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Tue, 10 Jan 2006 09:27:53 GMT]]></title><description><![CDATA[<p>Genau. Ich warte bis die exe fertig ist. Habe das bis jetzt mit System(...) gemacht, wo dann das Fenster aufgeht und das Programm eben wartet bis die exe fertig ist.<br />
Das meinte ich mit &quot;extra Prozess generieren&quot;. Du hast wohl Recht, daß es immer ein neuer Prozess sein muß, aber für mich muß er zumindest nicht nebenläufig sein, bzw. es wäre besser wenn er es nicht ist.</p>
<p>Ich schreibe eben meine Diplomarbeit. Und mein Programm verwendet eine schon vorhandene EXE um sich Daten in einem bestimmten Format zu holen. Also kann mein Programm erst weitermachen wenn die EXE sein Ergebnis geliefert hat. Aber, daß es wohl dochnicht so einfach ist, diese EXE eben unsichtbar zu starten und mein Programm auf das Erbenis warten zu lassen hätt ich nicht gedacht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962442</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962442</guid><dc:creator><![CDATA[DarkSchwabe]]></dc:creator><pubDate>Tue, 10 Jan 2006 09:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Tue, 10 Jan 2006 09:41:59 GMT]]></title><description><![CDATA[<p>Mit system, span, CreateProcess, usw. wird immer ein neuer Prozess gestartet... ob Du nun wartest bis der Fertig ist oder nicht ist ja von Dir abhängig...</p>
<p>Wenn Dich 10 Zeilen-Code stören um ein Fenster zu verhindern, dann hast Du mit C++ die falsche Programmiersprache gewählt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/962455</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962455</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 10 Jan 2006 09:41:59 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Tue, 10 Jan 2006 09:45:12 GMT]]></title><description><![CDATA[<p>*smile* okay...<br />
Dann werde ich mich mal etwas in CreateProcess einarbeiten damit mein Programm noch auf das Ende des externen Prozesses wartet....<br />
bzw. ich schau mir noch &quot;ShellExecute&quot; an. Habe ich gerade in einem anderne Thread gefunden. Aber ich denke ich werde mit CreateProcess eine Funktion für meine Zwecke basteln müssen.</p>
<p>Danke für deine Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962460</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962460</guid><dc:creator><![CDATA[DarkSchwabe]]></dc:creator><pubDate>Tue, 10 Jan 2006 09:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Wed, 11 Jan 2006 09:42:48 GMT]]></title><description><![CDATA[<p>Um auf das Ende des externen Processes zu warten kannst du WaitForSingleObject() auf WAIT_OBJECT_0 abfragen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963329</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963329</guid><dc:creator><![CDATA[luxx]]></dc:creator><pubDate>Wed, 11 Jan 2006 09:42:48 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Wed, 11 Jan 2006 09:48:25 GMT]]></title><description><![CDATA[<p>Oder einfach nur das Beispiel lesen, welches ich gepostet habe:<br />
<a href="http://msdn.microsoft.com/library/en-us/dllproc/base/creating_processes.asp" rel="nofollow">http://msdn.microsoft.com/library/en-us/dllproc/base/creating_processes.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/963337</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963337</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Wed, 11 Jan 2006 09:48:25 GMT</pubDate></item><item><title><![CDATA[Reply to Unsichtbare Shellaufrufe?? on Thu, 12 Jan 2006 10:13:01 GMT]]></title><description><![CDATA[<p>Prima. danke euch für eure Hilfe und Beispiele. Klappt nun alles.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/964334</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/964334</guid><dc:creator><![CDATA[DarkSchwabe]]></dc:creator><pubDate>Thu, 12 Jan 2006 10:13:01 GMT</pubDate></item></channel></rss>