<?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[anwendungen über dialogfeld öffnen]]></title><description><![CDATA[<p>Hallo,<br />
ich bin noch recht neu in der Programmierung und stehe gerade vor einem Problem.<br />
Ich möchte eine Toolbox erstellen, mit der ich verschiedene kleine Programme öffnen kann.<br />
Das heißt, ich habe ein Dialogfeld, mit 4 RadioButtons. Wenn ich davon einen auswähle, soll er das Programm starten, aber mir fehlt einfach der Ansatz wie ich da rangehe.<br />
Bin für jeden Tipp dankbar.<br />
Gruß Janinoe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/204206/anwendungen-über-dialogfeld-öffnen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Apr 2026 03:33:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/204206.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 31 Jan 2008 10:16:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 10:16:22 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich bin noch recht neu in der Programmierung und stehe gerade vor einem Problem.<br />
Ich möchte eine Toolbox erstellen, mit der ich verschiedene kleine Programme öffnen kann.<br />
Das heißt, ich habe ein Dialogfeld, mit 4 RadioButtons. Wenn ich davon einen auswähle, soll er das Programm starten, aber mir fehlt einfach der Ansatz wie ich da rangehe.<br />
Bin für jeden Tipp dankbar.<br />
Gruß Janinoe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446847</guid><dc:creator><![CDATA[Janinoe]]></dc:creator><pubDate>Thu, 31 Jan 2008 10:16:22 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 10:31:10 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39084.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39084.html</a> <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1446851</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446851</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Thu, 31 Jan 2008 10:31:10 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 10:38:16 GMT]]></title><description><![CDATA[<p>ok, probier ich das mal. dankeschön <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1446856</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446856</guid><dc:creator><![CDATA[Janinoe]]></dc:creator><pubDate>Thu, 31 Jan 2008 10:38:16 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 12:05:34 GMT]]></title><description><![CDATA[<p>hmm, also, habe das:</p>
<pre><code>void CToolboxDlg::OnBnClickedRadio1()
{
	PROCESS_INFORMATION pi = {0}; 
	STARTUPINFO si = {sizeof(si)}; 
	si.wShowWindow = SW_NORMAL;

	CString CommandLine;
	CommandLine = &quot;C:\Pfad\Programm.exe &quot;;
	CreateProcess(NULL, CommandLine, &quot;&quot;, NULL, FALSE, 0, NULL, NULL, &amp;pi, &amp;si);
}
}
</code></pre>
<p>gemacht, aber funktionieren tut das leider nicht</p>
<blockquote>
<p>error C2664: 'CreateProcessA': Konvertierung des Parameters 2 von 'CString' in 'LPSTR' nicht möglich</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1446903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446903</guid><dc:creator><![CDATA[Janinoe]]></dc:creator><pubDate>Thu, 31 Jan 2008 12:05:34 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 13:30:56 GMT]]></title><description><![CDATA[<p>habs jetzt noch mal geändert:</p>
<pre><code>void CToolboxDlg::OnBnClickedRadio1()
{
	PROCESS_INFORMATION pi = {0}; 
	STARTUPINFO si = {sizeof(si)}; 
	si.wShowWindow = SW_NORMAL;

	CString CommandLine; 
	CommandLine = &quot;C:\Pfad\Programm.exe &quot;;
	::CreateProcess(NULL, CommandLine.GetBuffer(255), NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi); 
	::WaitForSingleObject( pi.hProcess, INFINITE); 

	CloseHandle(pi.hProcess); 
	CloseHandle(pi.hThread);
}
</code></pre>
<p>Jetzt gibt es zwar keinen Fehler mehr, aber das Programm öffnet sich trotzdem nicht.<br />
Vielleicht weiß da ja jemand weiter... <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1446960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446960</guid><dc:creator><![CDATA[Janinoe]]></dc:creator><pubDate>Thu, 31 Jan 2008 13:30:56 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 13:42:32 GMT]]></title><description><![CDATA[<p>Siehe FAQ hier im Forum:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39084.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39084.html</a></p>
<p>und da Findest du<br />
::CreateProcess( _T(&quot;C:\\WinNT\\notepad.exe&quot;), _T(&quot;&quot;), NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);<br />
also sollte das dann so aussehen:<br />
::CreateProcess(CommandLine.GetBuffer(CommandLine.GetLength()),_T(&quot;&quot;), NULL, NULL, FALSE, 0, NULL, NULL, &amp;si, &amp;pi);</p>
<p>Dann denk ich sollte es laufen.</p>
<p>Gruß Matthias</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446978</guid><dc:creator><![CDATA[CTecS]]></dc:creator><pubDate>Thu, 31 Jan 2008 13:42:32 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 13:49:06 GMT]]></title><description><![CDATA[<p>dankeschön! Habs so geändert, aber da hat sich dann direkt das nächste problem aufgetan.<br />
Sobald ich den dialog starte führt er das Programm aus, und nicht erst wenn ich den entsprechenden RadioButton aktiviere und auf ok gehe und der dialog hängt sich auf ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1446989</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1446989</guid><dc:creator><![CDATA[Janinoe]]></dc:creator><pubDate>Thu, 31 Jan 2008 13:49:06 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 14:34:15 GMT]]></title><description><![CDATA[<p>(@estartu)<br />
Warum wird immer das komplexere CreateProcess verwendet anstatt ShellExecute(Ex)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447033</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447033</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 31 Jan 2008 14:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 14:52:50 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>(@estartu)<br />
Warum wird immer das komplexere CreateProcess verwendet anstatt ShellExecute(Ex)?</p>
</blockquote>
<p>Weil wohl keiner was dazu in die FAQ geschrieben hat. <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="😉"
    /><br />
Wenn du das mal machst kann man den Beitrag ergänzen. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1447053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447053</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Thu, 31 Jan 2008 14:52:50 GMT</pubDate></item><item><title><![CDATA[Reply to anwendungen über dialogfeld öffnen on Thu, 31 Jan 2008 14:57:16 GMT]]></title><description><![CDATA[<p>habs jetzt mit ShellExecute hingekriegt!!<br />
Danke für eure Hilfe!! <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1447059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447059</guid><dc:creator><![CDATA[Janinoe]]></dc:creator><pubDate>Thu, 31 Jan 2008 14:57:16 GMT</pubDate></item></channel></rss>