<?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[Python-Skript über GUI aufrufen]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mehrere Python-Skripte, die ich über VC++ ansprechen will. Die Skripte können problemlos aus der Kommandozeile ausgeführt werden, z.B.</p>
<blockquote>
<p>&gt; &quot;C:\<a href="http://test.py" rel="nofollow">test.py</a> para1 para2&quot;<br />
In VC++ will ich nun vom Benutzer diesen Aufruf aus der Kommandozeile &quot;nachbilden&quot;. Versucht habe ich es mit WinExec und mit CreateProcess, beides hat aber nicht funktioniert. Von der Syntax her war alles korrekt, da ich es an folgendem Bsp getestet hatte:</p>
</blockquote>
<pre><code class="language-cpp">[code]
PROCESS_INFORMATION pi = {0};
STARTUPINFO si = {sizeof(si)};
si.wShowWindow = SW_NORMAL;

::CreateProcess( _T(&quot;D:\\Windows\\system32\\sol.exe&quot;), _T(&quot;&quot;), NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);
[/code]
</code></pre>
<p>Der Aufruf:</p>
<pre><code class="language-cpp">::CreateProcess( _T(&quot;C:\\test.py para1 para2&quot;), _T(&quot;&quot;), NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);
</code></pre>
<p>bringt jedoch kein Ergebnis. Kann mir jemand helfen?</p>
<p>Danke und viele Grüße,<br />
Marc</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163619/python-skript-über-gui-aufrufen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 14:01:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163619.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Oct 2006 14:39:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Python-Skript über GUI aufrufen on Tue, 31 Oct 2006 14:39:49 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mehrere Python-Skripte, die ich über VC++ ansprechen will. Die Skripte können problemlos aus der Kommandozeile ausgeführt werden, z.B.</p>
<blockquote>
<p>&gt; &quot;C:\<a href="http://test.py" rel="nofollow">test.py</a> para1 para2&quot;<br />
In VC++ will ich nun vom Benutzer diesen Aufruf aus der Kommandozeile &quot;nachbilden&quot;. Versucht habe ich es mit WinExec und mit CreateProcess, beides hat aber nicht funktioniert. Von der Syntax her war alles korrekt, da ich es an folgendem Bsp getestet hatte:</p>
</blockquote>
<pre><code class="language-cpp">[code]
PROCESS_INFORMATION pi = {0};
STARTUPINFO si = {sizeof(si)};
si.wShowWindow = SW_NORMAL;

::CreateProcess( _T(&quot;D:\\Windows\\system32\\sol.exe&quot;), _T(&quot;&quot;), NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);
[/code]
</code></pre>
<p>Der Aufruf:</p>
<pre><code class="language-cpp">::CreateProcess( _T(&quot;C:\\test.py para1 para2&quot;), _T(&quot;&quot;), NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);
</code></pre>
<p>bringt jedoch kein Ergebnis. Kann mir jemand helfen?</p>
<p>Danke und viele Grüße,<br />
Marc</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1165398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1165398</guid><dc:creator><![CDATA[marc76]]></dc:creator><pubDate>Tue, 31 Oct 2006 14:39:49 GMT</pubDate></item><item><title><![CDATA[Reply to Python-Skript über GUI aufrufen on Tue, 31 Oct 2006 15:19:07 GMT]]></title><description><![CDATA[<p>Schau Dir mal ShellExecute an, das sollte dir weiterhelfen.</p>
<p>Gruß Matthias</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1165422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1165422</guid><dc:creator><![CDATA[CTecS]]></dc:creator><pubDate>Tue, 31 Oct 2006 15:19:07 GMT</pubDate></item><item><title><![CDATA[Reply to Python-Skript über GUI aufrufen on Tue, 31 Oct 2006 15:45:45 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">ShellExecute(NULL, _T(&quot;open&quot;), _T(&quot;C:\\test.py para1 para2&quot;), NULL, NULL, SW_SHOW);
</code></pre>
<p>bzw.</p>
<pre><code class="language-cpp">ShellExecute(NULL, &quot;open&quot;, &quot;C:\\test.py para1 para2&quot;, NULL, &quot;C:\\&quot;, SW_SHOWDEFAULT);
</code></pre>
<p>bringt leider auch nichts <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1165445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1165445</guid><dc:creator><![CDATA[marc76]]></dc:creator><pubDate>Tue, 31 Oct 2006 15:45:45 GMT</pubDate></item><item><title><![CDATA[Reply to Python-Skript über GUI aufrufen on Tue, 31 Oct 2006 16:29:15 GMT]]></title><description><![CDATA[<p>Pyton ist dich eine Interpretersprache, vielleicht solltest Du mal den Iterpreteraufruf mit in deine Commandline aufnehmen.<br />
Aber wie gesagt ich hab von Pyton keine Ahnung.</p>
<p>Gruß Matthias</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1165505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1165505</guid><dc:creator><![CDATA[CTecS]]></dc:creator><pubDate>Tue, 31 Oct 2006 16:29:15 GMT</pubDate></item><item><title><![CDATA[Reply to Python-Skript über GUI aufrufen on Thu, 02 Nov 2006 08:17:21 GMT]]></title><description><![CDATA[<p>Danke...</p>
<p>über z.B.</p>
<pre><code class="language-cpp">WinExec(&quot;cmd.exe /c C:\\test.py para1 para2&quot;,SW_SHOW);
</code></pre>
<p>hat es funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Gruß Marc</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1166700</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1166700</guid><dc:creator><![CDATA[marc76]]></dc:creator><pubDate>Thu, 02 Nov 2006 08:17:21 GMT</pubDate></item></channel></rss>