<?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[.exe-Datei aus einer Anwendung heraus starten]]></title><description><![CDATA[<p>Hallo,</p>
<p>meine Anwendung soll nach Beendigung ihrer Aufgabe eine zweite Anwendung<br />
aufrufen, die als .exe-Datei vorliegt. Beide wurden mit C++Builder6 ge-<br />
schrieben und sollen unter win2000 laufen.</p>
<p>Gibt es da sowas wie WinExec o.ä. mit dem ich das bewerkstelligen kann?</p>
<p>Danke im Voraus</p>
<p>Guido</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/125777/exe-datei-aus-einer-anwendung-heraus-starten</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 16:32:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/125777.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Nov 2005 13:31:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to .exe-Datei aus einer Anwendung heraus starten on Wed, 09 Nov 2005 13:31:18 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>meine Anwendung soll nach Beendigung ihrer Aufgabe eine zweite Anwendung<br />
aufrufen, die als .exe-Datei vorliegt. Beide wurden mit C++Builder6 ge-<br />
schrieben und sollen unter win2000 laufen.</p>
<p>Gibt es da sowas wie WinExec o.ä. mit dem ich das bewerkstelligen kann?</p>
<p>Danke im Voraus</p>
<p>Guido</p>
]]></description><link>https://www.c-plusplus.net/forum/post/912741</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/912741</guid><dc:creator><![CDATA[Atlas]]></dc:creator><pubDate>Wed, 09 Nov 2005 13:31:18 GMT</pubDate></item><item><title><![CDATA[Reply to .exe-Datei aus einer Anwendung heraus starten on Wed, 09 Nov 2005 13:54:06 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>siehe <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39256" rel="nofollow">FAQ</a></p>
<p>Ciao</p>
]]></description><link>https://www.c-plusplus.net/forum/post/912766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/912766</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 09 Nov 2005 13:54:06 GMT</pubDate></item><item><title><![CDATA[Reply to .exe-Datei aus einer Anwendung heraus starten on Fri, 11 Nov 2005 10:56:13 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>danke, die Beispiele und Erklärungen in der FAQ waren gut. Leider passiert da bei mir nichts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f622.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--crying_face"
      title=";-("
      alt="😢"
    /> So sieht mein Code aus:</p>
<pre><code>// Diese Klasse ist von TService abgeleitet
void __fastcall TService1::ServiceExecute(TService *Sender)
{
   while(!Terminated) {
     ServiceThread-&gt;ProcessRequests(false);
     int ret = (int)ShellExecute(0, &quot;open&quot;, &quot;TestProject.exe&quot;,
                                 0, 0, SW_SHOWNORMAL);
     if(ret &lt;= 32) {
       ServiceThread-&gt;Terminate();
     }
     else Sleep(2000);
   }
}
</code></pre>
<p>Das Programmle &quot;TestProject.exe&quot; macht nichts weiter, als die Uhrzeit in eine Datei schreiben. Kann es sein, dass soetwas in einer Service-Anwendung prinzipiell nicht geht?</p>
<p>Danke im Voraus</p>
<p>Guido</p>
]]></description><link>https://www.c-plusplus.net/forum/post/914865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/914865</guid><dc:creator><![CDATA[Atlas]]></dc:creator><pubDate>Fri, 11 Nov 2005 10:56:13 GMT</pubDate></item><item><title><![CDATA[Reply to .exe-Datei aus einer Anwendung heraus starten on Fri, 11 Nov 2005 13:55:43 GMT]]></title><description><![CDATA[<pre><code>WinExec(&quot;C:\\Meine_Andere_EXE.exe&quot;,SW_SHOWNORMAL)
</code></pre>
<p>OK?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/915106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/915106</guid><dc:creator><![CDATA[PiratMartin]]></dc:creator><pubDate>Fri, 11 Nov 2005 13:55:43 GMT</pubDate></item><item><title><![CDATA[Reply to .exe-Datei aus einer Anwendung heraus starten on Mon, 14 Nov 2005 08:08:58 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>es funktioniert auch mit ShellExecute(...) wenn man den kompletten Programmpfad mit angibt. Gibt's da auch eine Methode um das Programm wieder zu beenden?</p>
<p>TIA Guido</p>
]]></description><link>https://www.c-plusplus.net/forum/post/917023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/917023</guid><dc:creator><![CDATA[Atlas]]></dc:creator><pubDate>Mon, 14 Nov 2005 08:08:58 GMT</pubDate></item><item><title><![CDATA[Reply to .exe-Datei aus einer Anwendung heraus starten on Mon, 14 Nov 2005 09:04:27 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>entweder das entstandene Fenster mit FindWindow suchen und eine Message zum Schließen schicken, oder anstatt ShellExecute() dann ShellExecuteEx() nehmen und den dort erhaltenen Prozeßhandle in TerminateProcess() verwenden.</p>
<p>bid bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/917058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/917058</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 14 Nov 2005 09:04:27 GMT</pubDate></item><item><title><![CDATA[Reply to .exe-Datei aus einer Anwendung heraus starten on Tue, 15 Nov 2005 07:31:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>erstmal Danke fuer eure Tipps. Ich habe jetzt das Loeschen einer laufenden Anwendung wie folgt geloest:</p>
<pre><code>// myProgramm ist myProgramm.exe!
  HWND wHandle = ::FindWindow(NULL, &quot;myProgramm&quot;);

  unsigned long pId = 0L;
  if (wHandle != NULL) {
    GetWindowThreadProcessId(wHandle, &amp;pId);
  }

  HANDLE pH = OpenProcess(PROCESS_TERMINATE, 0, pId);
  if (TerminateProcess(pH, 0)) {
    wHandle = 0;
  }
</code></pre>
<p>Funktioniert jedenfalls <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
<p>Gruss Guido</p>
]]></description><link>https://www.c-plusplus.net/forum/post/918123</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/918123</guid><dc:creator><![CDATA[Atlas]]></dc:creator><pubDate>Tue, 15 Nov 2005 07:31:32 GMT</pubDate></item></channel></rss>