<?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: Aufgerufene Applikation funktioniert nicht mehr richtig]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich möchte aus meinem Programm heraus eine andere Applikation starten.</p>
<p>Die Applikation, die ich aufrufe läuft einwandfrei, wenn ich sie manuell starte. Sobald ich sie aber aus einem anderen Programm heraus mit ShellExecute aufrufe kann diese nicht mehr auf Dateien zugreifen:</p>
<pre><code>ShellExecute(m_hWnd, &quot;open&quot;, ziel, NULL, NULL, SW_SHOWNORMAL);
</code></pre>
<p>Ich habe es dann auch mit CreateProcess versucht, das hat aber auch nichts gebracht:</p>
<pre><code>CreateProcess(NULL, ziel, NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);
</code></pre>
<p>Hat jemand eine Idee, woran das liegen könnte??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/79959/shellexecute-aufgerufene-applikation-funktioniert-nicht-mehr-richtig</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 17:00:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/79959.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 15 Jul 2004 18:42:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellExecute: Aufgerufene Applikation funktioniert nicht mehr richtig on Thu, 15 Jul 2004 18:42:51 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich möchte aus meinem Programm heraus eine andere Applikation starten.</p>
<p>Die Applikation, die ich aufrufe läuft einwandfrei, wenn ich sie manuell starte. Sobald ich sie aber aus einem anderen Programm heraus mit ShellExecute aufrufe kann diese nicht mehr auf Dateien zugreifen:</p>
<pre><code>ShellExecute(m_hWnd, &quot;open&quot;, ziel, NULL, NULL, SW_SHOWNORMAL);
</code></pre>
<p>Ich habe es dann auch mit CreateProcess versucht, das hat aber auch nichts gebracht:</p>
<pre><code>CreateProcess(NULL, ziel, NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);
</code></pre>
<p>Hat jemand eine Idee, woran das liegen könnte??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561666</guid><dc:creator><![CDATA[Corvus]]></dc:creator><pubDate>Thu, 15 Jul 2004 18:42:51 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute: Aufgerufene Applikation funktioniert nicht mehr richtig on Thu, 15 Jul 2004 18:55:08 GMT]]></title><description><![CDATA[<p>Versuchs doch mal mit WinExec :</p>
<pre><code>WinExec(ziel, SW_SHOW);
</code></pre>
<p>Gruß<br />
:: NoName ::</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561679</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Thu, 15 Jul 2004 18:55:08 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute: Aufgerufene Applikation funktioniert nicht mehr richtig on Thu, 15 Jul 2004 19:31:45 GMT]]></title><description><![CDATA[<p>Hallo :: NoName ::</p>
<p>WinExec funktioniert leider auch nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561702</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561702</guid><dc:creator><![CDATA[Corvus]]></dc:creator><pubDate>Thu, 15 Jul 2004 19:31:45 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute: Aufgerufene Applikation funktioniert nicht mehr richtig on Thu, 15 Jul 2004 19:52:32 GMT]]></title><description><![CDATA[<p>Ich hatte da mal ein ähnliches Problem. Die exe ließ sich mit ShellExecute nicht ausführen. Das lag wohl daran, das mein Programm nicht im selben Ordner war wie die auszuführende exe.<br />
Ich habe dann eine Batchdatei gestartet</p>
<pre><code class="language-cpp">ShellExecute(m_hWnd, &quot;open&quot;, &quot;Starthilfe.bat&quot;, NULL, NULL, SW_HIDE);
</code></pre>
<p>und in der Batchdatei bin ich erst in das gewünschte Verzeichnis gegangen und habe dann die exe gestartet.</p>
<pre><code>cd Programme\MeinOrdner
MeinProg.exe
exit
</code></pre>
<p>Klappt wie ein griechisches Länderspiel <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/561715</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561715</guid><dc:creator><![CDATA[Trikor]]></dc:creator><pubDate>Thu, 15 Jul 2004 19:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute: Aufgerufene Applikation funktioniert nicht mehr richtig on Fri, 16 Jul 2004 04:24:12 GMT]]></title><description><![CDATA[<p>Hallo Trikor,</p>
<p>danke für Deinen Tipp.</p>
<p>Das scheint tatsächlich sowas wie ein Berechtigungsproblem zu sein. Wenn ich meine Anwendung im selben Ordner starte, wird sie Problemlos ausgeführt. Leider bringt mich das nicht wirklich weiter, da auch eine Batchdatei, die in einem anderen Ordner liegt nicht ausgeführt wird. Somit startet sie auch nicht mein Programm...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561821</guid><dc:creator><![CDATA[Corvus]]></dc:creator><pubDate>Fri, 16 Jul 2004 04:24:12 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute: Aufgerufene Applikation funktioniert nicht mehr richtig on Fri, 16 Jul 2004 04:54:41 GMT]]></title><description><![CDATA[<p>Ich habe den Fehler gefunden:</p>
<p>Wenn man den Pfad zur Datei im Parameter lpDirectory bei ShellExecute übergibt, wird die Anwendung korrekt ausgeführt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/561822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/561822</guid><dc:creator><![CDATA[Corvus]]></dc:creator><pubDate>Fri, 16 Jul 2004 04:54:41 GMT</pubDate></item></channel></rss>