<?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[system(const char *) ohne Dos-Box ???]]></title><description><![CDATA[<p>hi,<br />
hat jemand ne ahnung wie man in einem C-Programm einen system(const char <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="😉"
    /> aufruf machen kann ohne dabei eine dos-box aufpoppen zu lassen??</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76836/system-const-char-ohne-dos-box</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 16:00:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76836.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Jun 2004 12:29:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 12:29:04 GMT]]></title><description><![CDATA[<p>hi,<br />
hat jemand ne ahnung wie man in einem C-Programm einen system(const char <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="😉"
    /> aufruf machen kann ohne dabei eine dos-box aufpoppen zu lassen??</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540725</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Tue, 15 Jun 2004 12:29:04 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 13:14:39 GMT]]></title><description><![CDATA[<p>Standard ANSI-C kennt keine DOS-Box. Dass da also eine Box aufpoppt ist betriebssytemabhängig, daher musst du auch eine betriebssystemspezifische Funktion aufrufen. In deinem Fall eine Funktion aus der WinAPI, die da heißt ShellExecute(). In der <a href="http://msdn.microsoft.com" rel="nofollow">MSDN</a> findest du mehr darüber. Speziell bei dir ist der Parameter interesant, der die Art des Öffnens bestimmt. Da kann man angeben, dass das auszuführende Programm versteckt ausgeführt werden soll.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540781</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540781</guid><dc:creator><![CDATA[AJ]]></dc:creator><pubDate>Tue, 15 Jun 2004 13:14:39 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 13:22:16 GMT]]></title><description><![CDATA[<p>ok, danke fuer den tipp. die funktion der winapi kenne ich schon. Es gibt sogar eine &quot;extended&quot; version von der glaube ich !? Meine frage bezog sich aber direkt auf einen system(const char <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="😉"
    /> aufruf.</p>
<p>mein problem ist folgendes, vielleicht habt ihr ja trotzdem nen tipp:<br />
ich habe ne gui die eine c-funktion aufruft, welche wiederum in sich system(const char*) aufrufe beinhaltet. fuehre ich nun die funktion (bei klicken auf einen button z.B.) aus, dann poppen dos-boxen auf, die ziemlich scheisse aussehen.</p>
<p>ich kann nun aber nicht die ganze c-funktion so umaendern und die system(const char*) durch WINAPI aufrufe ersetzen, weil diese funktion fuer eine normale ANSI-C Umgebung auch funktionieren soll. Diese funktion mal eben selbst nochmal zu schreiben ist auch nicht moeglich (zu komplex).</p>
<p>Ich dachte es gaebe vielleicht ne moeglichkeit die dos-boxen nicht aufpoppen zu lassen´!??!??</p>
<p>danke.<br />
gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540790</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540790</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Tue, 15 Jun 2004 13:22:16 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 13:29:18 GMT]]></title><description><![CDATA[<p>Hmmm, nein da kenne ich keine direkte Möglichkeit, dass diese Boxen nicht aufgepoppt werden.</p>
<p>Eine Möglichkeit wäre vielleicht noch, dass du die Funktion als extra Programm aussonderst, wenn das geht, und dann dieses Programm per ShellExecute() versteckt aufrufst, dann sollten eigentlich die anderen Aufrufe nicht in einer extra Box aufgehen sondern in dieser versteckten &quot;angezeigt&quot; werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540800</guid><dc:creator><![CDATA[AJ]]></dc:creator><pubDate>Tue, 15 Jun 2004 13:29:18 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 13:40:02 GMT]]></title><description><![CDATA[<p>ne das ist leider nicht moeglich, weil das eine teilfunktionalitaet ist die ich brauche. ansonsten haette ich natuerlich das exe per shellexecuteex aufrufen koennen :))</p>
<p>aber nochmal ne frage dazu:</p>
<p>ich habe gerade versucht die system(const char*)<br />
aufrufe zu ersetzen und habe hierzu erstmal folgenden include gemacht fuer ShellExecuteEx:</p>
<pre><code>#include &lt;shlwapi.h&gt;
</code></pre>
<p>danach habe ich einen system(command) aufruf ersetzt durch folgendes:</p>
<pre><code>SHELLEXECUTEINFO sei; 
ZeroMemory( &amp;sei, sizeof( sei ) ); 
sei.cbSize       = sizeof( sei ); 
sei.fMask        = SEE_MASK_NOCLOSEPROCESS; 
sei.lpFile       = &quot;cte.exe&quot;; 
sei.lpParameters = msg;
sei.lpDirectory  = NULL; 
sei.nShow        = SW_HIDE; 

ShellExecuteEx( &amp;sei ); 
if ( sei.hProcess ){ 
	// warte bis der prozess beendet wurde.... 
	WaitForSingleObject( sei.hProcess, INFINITE ); 
	CloseHandle( sei.hProcess ); 
}
</code></pre>
<p>Aber mein compiler meckert ueber irgendwelche sachen in der includierten header (siehe oben) obwohl die ja korrekt sein muesste. woran kann das liegen (brauche ich zusaetzliche irgendwelche header fuer ShellExecuteEx !?!?!?</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540811</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540811</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Tue, 15 Jun 2004 13:40:02 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 13:41:48 GMT]]></title><description><![CDATA[<p>folgende zeile muesste entsprechend sein:<br />
..<br />
sei.lpFile = command;<br />
sei.lpParameters = NULL;<br />
..</p>
<p>gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540812</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540812</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Tue, 15 Jun 2004 13:41:48 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 13:50:30 GMT]]></title><description><![CDATA[<p>Mit ShellExecuteEx() kenn ich mich nicht aus; hab bisher nur die ShellExecute() benutzt und dazu brauchst man ja nur die windows.h.</p>
<p>Ich verschieb dich jetzt mal ins WinAPI-Forum, vielleicht weiß da jemand was falsch ist oder kennt sogar eine WinAPI-Funktion die dir das Ersetzen erspart ( <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>Viel Erfolg!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540827</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540827</guid><dc:creator><![CDATA[AJ]]></dc:creator><pubDate>Tue, 15 Jun 2004 13:50:30 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 13:51:05 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=2739" rel="nofollow">AJ</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=10" rel="nofollow">ANSI C</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/540829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540829</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 15 Jun 2004 13:51:05 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Tue, 15 Jun 2004 19:57:32 GMT]]></title><description><![CDATA[<p>Vielleicht bringt <a href="http://msdn.microsoft.com/library/en-us/dllproc/base/setstdhandle.asp" rel="nofollow">SetStdHandle</a> etwas <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/541140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541140</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 15 Jun 2004 19:57:32 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Wed, 16 Jun 2004 07:46:40 GMT]]></title><description><![CDATA[<p>peperonee schrieb:</p>
<blockquote>
<p>Aber mein compiler meckert ueber irgendwelche sachen in der includierten header (siehe oben) obwohl die ja korrekt sein muesste.</p>
</blockquote>
<p>und was meckert er sonst noch? plattform sdk downgeloadet? remarks und info's beachtet?<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecuteex.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecuteex.asp</a></p>
<p>[edit]<br />
blödsinn gelöscht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/541259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541259</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 16 Jun 2004 07:46:40 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Wed, 16 Jun 2004 07:19:10 GMT]]></title><description><![CDATA[<p>Hast du mal zu Beginn noch windows.h eingebunden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/541279</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541279</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 16 Jun 2004 07:19:10 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Wed, 16 Jun 2004 07:42:52 GMT]]></title><description><![CDATA[<p>ja ich habe vorher windows.h eingebunden.<br />
die fehler die angezeigt werden sind komischerweise syntax-fehler in der header shlwapi.h und das kann ja nicht sein.</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/541297</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541297</guid><dc:creator><![CDATA[peperonee]]></dc:creator><pubDate>Wed, 16 Jun 2004 07:42:52 GMT</pubDate></item><item><title><![CDATA[Reply to system(const char *) ohne Dos-Box ??? on Wed, 16 Jun 2004 10:25:44 GMT]]></title><description><![CDATA[<p>Kann es sein, dass du dir ein PSDK-Update runtergeladen und installiert hast, aber das PSDK-Verzeichnis in VC++ bei den Verzeichnissen unter Optionen nicht ganz oben steht, sodass es zu einem Versionskonflikt kommt <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="😕"
    /><br />
Was für Fehler bekommst du denn genau (mal nur die ersten paar) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/541429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/541429</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Wed, 16 Jun 2004 10:25:44 GMT</pubDate></item></channel></rss>