<?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[Problem mit CreateProcess]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin auf ein interessantes Problem mit CreateProcess gestoßen. Ich kann selbst erzeugte EXE-Dateien (mit Visual <a href="http://C++.NET" rel="nofollow">C++.NET</a> erstellt) mit dem Befehl CreateProcess nicht starten. Andere Programme, wie z.B. 'Notepad.exe' lassen sich ohne Probleme öffnen.</p>
<p>Das Ergebnis von CreateProcess ist '1' und somit in Ordnung: &quot;If the function succeeds, the return value is nonzero&quot;. Nebenbei bemerkt - GetLastError() gibt keinen Fehler zurück.</p>
<p>Der genaue Code ist folgender.</p>
<pre><code class="language-cpp">STARTUPINFO si = {sizeof(si)}; 
PROCESS_INFORMATION pi;

CreateProcess(&quot;c:\\path\\pat.exe&quot;,
			NULL,
			NULL,
			NULL,
			FALSE,
			NORMAL_PRIORITY_CLASS,
			NULL, 
			NULL,
			&amp;si,
			&amp;pi);
</code></pre>
<p>Weiss jemand Rat? Aus lauter Verzweiflung habe ich mein Programm pat.exe sowohl in der Debug- als auch in der Release-Version generiert und mit CreateProcess versucht zu starten - selbes Resultat.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/51034/problem-mit-createprocess</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 13:05:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/51034.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Oct 2003 14:45:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit CreateProcess on Mon, 06 Oct 2003 14:45:11 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin auf ein interessantes Problem mit CreateProcess gestoßen. Ich kann selbst erzeugte EXE-Dateien (mit Visual <a href="http://C++.NET" rel="nofollow">C++.NET</a> erstellt) mit dem Befehl CreateProcess nicht starten. Andere Programme, wie z.B. 'Notepad.exe' lassen sich ohne Probleme öffnen.</p>
<p>Das Ergebnis von CreateProcess ist '1' und somit in Ordnung: &quot;If the function succeeds, the return value is nonzero&quot;. Nebenbei bemerkt - GetLastError() gibt keinen Fehler zurück.</p>
<p>Der genaue Code ist folgender.</p>
<pre><code class="language-cpp">STARTUPINFO si = {sizeof(si)}; 
PROCESS_INFORMATION pi;

CreateProcess(&quot;c:\\path\\pat.exe&quot;,
			NULL,
			NULL,
			NULL,
			FALSE,
			NORMAL_PRIORITY_CLASS,
			NULL, 
			NULL,
			&amp;si,
			&amp;pi);
</code></pre>
<p>Weiss jemand Rat? Aus lauter Verzweiflung habe ich mein Programm pat.exe sowohl in der Debug- als auch in der Release-Version generiert und mit CreateProcess versucht zu starten - selbes Resultat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/366870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/366870</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Mon, 06 Oct 2003 14:45:11 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Mon, 06 Oct 2003 14:58:38 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Probier doch mal aus, als ersten Parameter NULL zu übergeben und als zweiten deinen Pfad.</p>
<p>Tschüss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/366879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/366879</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Mon, 06 Oct 2003 14:58:38 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Tue, 07 Oct 2003 06:05:20 GMT]]></title><description><![CDATA[<p>Habe es gerade ausprobiert - funktioniert aber nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Es funktioniert auch nicht mit 'system', 'WinExec' und 'ShellExecute'</p>
<pre><code class="language-cpp">ShellExecute(NULL,&quot;open&quot;,&quot;c:\\path\\pat.exe&quot;,NULL,NULL,SW_SHOW);

WinExec(&quot;c:\\path\\pat.exe&quot;, SW_SHOW);

system(&quot;start c:\\path\\pat.exe&quot;);
</code></pre>
<p>Wenn ich auf der Kommandozeile &quot;c:\path\pat.exe&quot; eingegebe, dann wird mein Programm ganz normal ausgeführt.</p>
<p>Hat jemand eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367232</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367232</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Tue, 07 Oct 2003 06:05:20 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Tue, 07 Oct 2003 07:51:47 GMT]]></title><description><![CDATA[<p>versuch mal system und dann noch den header:<br />
#include &lt;stdlib.h&gt; //The system function requires the STDLIB.H header file to be included</p>
<p>kann sein, daß deine <a href="http://command.com" rel="nofollow">command.com</a> bzw. deine cmd nicht angesprochen werden..<br />
nur so eine idee.</p>
<p>dein nick schaut nach fernuni aus *grins*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367301</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367301</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Tue, 07 Oct 2003 07:51:47 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Tue, 07 Oct 2003 08:52:15 GMT]]></title><description><![CDATA[<p>...das funktioniert leider auch nicht...</p>
<p>Also, das einzige das mir noch einfällt ist, dass es daran liegt wie mein Programm pat.exe generiert worden ist. Nur hört es hier bei mir auf <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>
<p>Wie gesagt, ich freue mich über jeden Hinweis ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367345</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367345</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Tue, 07 Oct 2003 08:52:15 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Tue, 07 Oct 2003 09:24:01 GMT]]></title><description><![CDATA[<p>...kleine Anmerkung noch.</p>
<p>Wenn ich WinExec benutze, dann ist der Rückgabewert = ERROR_LOCK_VIOLATION</p>
<p>&quot;The process cannot access the file because another process has locked a portion of the file.&quot;</p>
<p>Jetzt bin ich noch mehr verwirrt als vorher...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367369</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367369</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Tue, 07 Oct 2003 09:24:01 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Tue, 07 Oct 2003 09:37:57 GMT]]></title><description><![CDATA[<p>q150022 schrieb:</p>
<blockquote>
<p>...kleine Anmerkung noch.</p>
<p>Wenn ich WinExec benutze, dann ist der Rückgabewert = ERROR_LOCK_VIOLATION</p>
<p>&quot;The process cannot access the file because another process has locked a portion of the file.&quot;</p>
<p>Jetzt bin ich noch mehr verwirrt als vorher...</p>
</blockquote>
<p>noch im speicher von windows? bzw wurde schon gestartet aber nicht korrekt beendet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367380</guid><dc:creator><![CDATA[Glied ;)]]></dc:creator><pubDate>Tue, 07 Oct 2003 09:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Tue, 07 Oct 2003 10:14:03 GMT]]></title><description><![CDATA[<p>q150022 schrieb:</p>
<blockquote>
<p>Wenn ich WinExec benutze, dann ist der Rückgabewert = ERROR_LOCK_VIOLATION</p>
</blockquote>
<p>Also hat's geklappt. Ein Blick in &lt;winerror.h&gt;:</p>
<pre><code class="language-cpp">#define ERROR_LOCK_VIOLATION             33L
</code></pre>
<p>Ein Blick in die Doku:</p>
<p>MSDN schrieb:</p>
<blockquote>
<p>If the function succeeds, the return value is greater than 31.</p>
</blockquote>
<p>Deine pat.exe lässt sich händisch aber einwandfrei starten, ja? Enthält der tatsächliche Pfad zur Exe zufälligerweise Spaces?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/367416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/367416</guid><dc:creator><![CDATA[-King-]]></dc:creator><pubDate>Tue, 07 Oct 2003 10:14:03 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit CreateProcess on Thu, 09 Oct 2003 18:10:56 GMT]]></title><description><![CDATA[<p>hi!<br />
willst du die exe-datei aus sich selbst heraus starten? dann wärs kein wunder warum das nicht geht...</p>
<blockquote>
<p>ERROR_LOCK_VIOLATION</p>
<p>&quot;The process cannot access the file because another process has locked a portion of the file.&quot;</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/369341</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/369341</guid><dc:creator><![CDATA[Yoth]]></dc:creator><pubDate>Thu, 09 Oct 2003 18:10:56 GMT</pubDate></item></channel></rss>