<?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 bei ShellExecuteEx]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>ich habe mir hier eine neue Struktur vom Typ LPSHELLEXECUTEINFO angelegt, womit ich später eine bat Datei ausführen möchte. Den Typen habe ich deswegen genommen, weil ich dort auf einen Rückgabewert abfragen kann.</p>
<p>Problem ist, dass er mal gar nichts macht, auch diesen code, den ich gleich poste, nicht.</p>
<pre><code class="language-cpp">this-&gt;shellTest=(SHELLEXECUTEINFO*)malloc( sizeof(SHELLEXECUTEINFO) );
	this-&gt;shellTest-&gt;cbSize = sizeof(this-&gt;shellTest); 
	this-&gt;shellTest-&gt;fMask = SEE_MASK_NOCLOSEPROCESS;
	this-&gt;shellTest-&gt;hwnd = GetActiveWindow();
	this-&gt;shellTest-&gt;lpVerb = &quot;open&quot;;
	this-&gt;shellTest-&gt;lpFile = &quot;cmd.exe&quot;;
	this-&gt;shellTest-&gt;lpDirectory = &quot;C:\\Windows\\System32\\&quot;;
	//this-&gt;shellTest-&gt;hInstApp = test;
	this-&gt;shellTest-&gt;nShow = SW_SHOWNORMAL;

	if (! ShellExecuteEx(this-&gt;shellTest) )
	{
		MessageBox(NULL,&quot;Keine Lust&quot;,NULL,MB_OK);

	}
</code></pre>
<p>Ich hab keine ahnung, woran es liegt und warum er das nicht macht</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/168203/problem-bei-shellexecuteex</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 08:16:05 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/168203.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Dec 2006 15:03:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem bei ShellExecuteEx on Tue, 19 Dec 2006 15:03:52 GMT]]></title><description><![CDATA[<p>Hallo zusammen</p>
<p>ich habe mir hier eine neue Struktur vom Typ LPSHELLEXECUTEINFO angelegt, womit ich später eine bat Datei ausführen möchte. Den Typen habe ich deswegen genommen, weil ich dort auf einen Rückgabewert abfragen kann.</p>
<p>Problem ist, dass er mal gar nichts macht, auch diesen code, den ich gleich poste, nicht.</p>
<pre><code class="language-cpp">this-&gt;shellTest=(SHELLEXECUTEINFO*)malloc( sizeof(SHELLEXECUTEINFO) );
	this-&gt;shellTest-&gt;cbSize = sizeof(this-&gt;shellTest); 
	this-&gt;shellTest-&gt;fMask = SEE_MASK_NOCLOSEPROCESS;
	this-&gt;shellTest-&gt;hwnd = GetActiveWindow();
	this-&gt;shellTest-&gt;lpVerb = &quot;open&quot;;
	this-&gt;shellTest-&gt;lpFile = &quot;cmd.exe&quot;;
	this-&gt;shellTest-&gt;lpDirectory = &quot;C:\\Windows\\System32\\&quot;;
	//this-&gt;shellTest-&gt;hInstApp = test;
	this-&gt;shellTest-&gt;nShow = SW_SHOWNORMAL;

	if (! ShellExecuteEx(this-&gt;shellTest) )
	{
		MessageBox(NULL,&quot;Keine Lust&quot;,NULL,MB_OK);

	}
</code></pre>
<p>Ich hab keine ahnung, woran es liegt und warum er das nicht macht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194883</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Tue, 19 Dec 2006 15:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei ShellExecuteEx on Tue, 19 Dec 2006 15:26:14 GMT]]></title><description><![CDATA[<p>Warum benutzt du nicht eine lokale Variable vom Typ SHELLEXECUTEINFO, anstatt dynamisch Speicher zu allokieren?<br />
Überleg dir mal, welchen Wert &quot;sizeof(this-&gt;shellTest)&quot; bei deinem Code hat?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194895</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Tue, 19 Dec 2006 15:26:14 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei ShellExecuteEx on Tue, 19 Dec 2006 15:32:09 GMT]]></title><description><![CDATA[<p>weil wenn ich den habe, ich nicht mehr ShellExecuteEx arbeiten kann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194899</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Tue, 19 Dec 2006 15:32:09 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei ShellExecuteEx on Tue, 19 Dec 2006 16:12:03 GMT]]></title><description><![CDATA[<p>MSS-Software schrieb:</p>
<blockquote>
<p>weil wenn ich den habe, ich nicht mehr ShellExecuteEx arbeiten kann</p>
</blockquote>
<p>...und warum solltest Du damit nicht arbeiten können?</p>
<p>Änder die Zeile 2 in:</p>
<pre><code class="language-cpp">this-&gt;shellTest-&gt;cbSize = sizeof(SHELLEXECUTEINFO);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1194929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194929</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Tue, 19 Dec 2006 16:12:03 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei ShellExecuteEx on Tue, 19 Dec 2006 18:44:17 GMT]]></title><description><![CDATA[<p>ja, das hatte ich ja vorher auch so, problem ist aber, dass</p>
<p>ShellExecuteEx</p>
<p>als Übergabeparameter eine Struktur von LPSHELLEXECUTEINFO</p>
<p>haben möchte.</p>
<p>der compiler wollte des nicht <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1195033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1195033</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Tue, 19 Dec 2006 18:44:17 GMT</pubDate></item></channel></rss>