<?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 und nachfolgender Programmcode]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>ich habe mal eine Frage zu ShellExecute. Ich habe ein Programm bei dem ich in meinem Ablauf ein anderes Programm in ShellExecute aufrufe, dass mir im Hintergrund etwas ausrechnet. Mein Programm im Vordergrund muss aber warten, bis im Hintergrund alles ausgerechnet wurde um weiter zu machen. Gibt es einen Befehl der mein Program solange warten lässt bis ShellExecute fertig ist?</p>
<p>Hier mein Code:</p>
<pre><code class="language-cpp">bool CVtktest2Dlg::GenerateRobotPath()
{

    ShellExecute(NULL,&quot;open&quot;,&quot;C:\\Programme\\DeskProto 4.1 Testversion\\Dp.exe&quot;,&quot;CreatedImplantStencil.stl CocleaImplantPath.ncp&quot;, &quot;&quot;, SW_SHOWMINIMIZED);
//Warten?

//Diese Methode kann erst arbeiten wenn DeskProto fertig gerechnet hat
	ReadMillingPath(&quot;C:\\Programme\\DeskProto 4.1 Testversion\\Data\\CocleaImplantPath.ncp&quot;);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/172671/shellexecute-und-nachfolgender-programmcode</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 11:13:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172671.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Feb 2007 12:26:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellExecute und nachfolgender Programmcode on Wed, 07 Feb 2007 12:26:02 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>ich habe mal eine Frage zu ShellExecute. Ich habe ein Programm bei dem ich in meinem Ablauf ein anderes Programm in ShellExecute aufrufe, dass mir im Hintergrund etwas ausrechnet. Mein Programm im Vordergrund muss aber warten, bis im Hintergrund alles ausgerechnet wurde um weiter zu machen. Gibt es einen Befehl der mein Program solange warten lässt bis ShellExecute fertig ist?</p>
<p>Hier mein Code:</p>
<pre><code class="language-cpp">bool CVtktest2Dlg::GenerateRobotPath()
{

    ShellExecute(NULL,&quot;open&quot;,&quot;C:\\Programme\\DeskProto 4.1 Testversion\\Dp.exe&quot;,&quot;CreatedImplantStencil.stl CocleaImplantPath.ncp&quot;, &quot;&quot;, SW_SHOWMINIMIZED);
//Warten?

//Diese Methode kann erst arbeiten wenn DeskProto fertig gerechnet hat
	ReadMillingPath(&quot;C:\\Programme\\DeskProto 4.1 Testversion\\Data\\CocleaImplantPath.ncp&quot;);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1224391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1224391</guid><dc:creator><![CDATA[samo]]></dc:creator><pubDate>Wed, 07 Feb 2007 12:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute und nachfolgender Programmcode on Wed, 07 Feb 2007 12:35:12 GMT]]></title><description><![CDATA[<p>Nimm ShellExecuteEx(), damit kannst du etwas genauere Informationen zum gestarteten Programm erhalten. Mit der Funktion hast du sogar zwei Möglichkeiten, dein Ziel zu erreichen:</p>
<ul>
<li>du setzt in fMask das Flag SEE_MASK_NOCLOSEPROCESS und wartest anschließend mit WaitForSingleObject() auf den zurückgegebenen hProcess</li>
<li>du setzt das Flag nicht - dann wartet die Funktion, bis der Aufruf fertig ist</li>
</ul>
]]></description><link>https://www.c-plusplus.net/forum/post/1224396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1224396</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 07 Feb 2007 12:35:12 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute und nachfolgender Programmcode on Wed, 07 Feb 2007 13:25:11 GMT]]></title><description><![CDATA[<p>Danke CStoll für die schnelle Antwort. Vielleicht eine blöde Frage, aber wie rufe ich denn ShellExecuteEx auf? Das hat ja ne ganze Menge Parameter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1224427</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1224427</guid><dc:creator><![CDATA[samo]]></dc:creator><pubDate>Wed, 07 Feb 2007 13:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute und nachfolgender Programmcode on Wed, 07 Feb 2007 13:45:44 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Nein, ShellExecuteEx hat nur genau einen Parameter... und der ist vom Typ <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/structures/shellexecuteinfo.asp" rel="nofollow">SHELLEXECUTEINFO</a>.<br />
Ein Anwendungsbeispiel findest du <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39256-and-postdays-is-0-and-postorder-is-asc-and-start-is-10.html" rel="nofollow">hier</a> im vorletzten Post von WebFritzi.</p>
<p>bis bald<br />
akair</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1224438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1224438</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 07 Feb 2007 13:45:44 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute und nachfolgender Programmcode on Wed, 07 Feb 2007 15:22:14 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=4" rel="nofollow">WinAPI</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/1224501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1224501</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 07 Feb 2007 15:22:14 GMT</pubDate></item></channel></rss>