<?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[ShellExecute in Konsolenanwendung einbinden]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich in VC++ 6 ShellExecute einbiden bzw. welche Einstellung muss ich machen ?</p>
<p>vielen Dank schon mal</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/77495/shellexecute-in-konsolenanwendung-einbinden</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 19:00:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/77495.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Jun 2004 19:32:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 19:32:22 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich in VC++ 6 ShellExecute einbiden bzw. welche Einstellung muss ich machen ?</p>
<p>vielen Dank schon mal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545285</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545285</guid><dc:creator><![CDATA[Karl02]]></dc:creator><pubDate>Mon, 21 Jun 2004 19:32:22 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 19:44:39 GMT]]></title><description><![CDATA[<p>einstellung=winapi forum <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
<p>btw in konsolenanwendung nicht möglich, da man dazu nich main sondern winmain braucht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545292</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Mon, 21 Jun 2004 19:44:39 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 19:48:32 GMT]]></title><description><![CDATA[<p>und wie kann ich dann das unter C++ normal machen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545298</guid><dc:creator><![CDATA[Karl02]]></dc:creator><pubDate>Mon, 21 Jun 2004 19:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 19:54:13 GMT]]></title><description><![CDATA[<p>Klar ist ShellExecute() auch in einer Konsolenanwendung möglich.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545304</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545304</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 21 Jun 2004 19:54:13 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 20:02:57 GMT]]></title><description><![CDATA[<p>und wie konfiguriere ich das dafür ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545309</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545309</guid><dc:creator><![CDATA[Karl02]]></dc:creator><pubDate>Mon, 21 Jun 2004 20:02:57 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 20:33:13 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=5608" rel="nofollow">davie</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">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/545320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545320</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 21 Jun 2004 20:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 20:59:41 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;shellapi.h&gt;

#pragma comment(lib, &quot;shell32.lib&quot;)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/545338</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545338</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Mon, 21 Jun 2004 20:59:41 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 21:32:16 GMT]]></title><description><![CDATA[<p>danke aber weis noch jemand ob das ganze auch unter DOS funktioniert oder welche Funktion muss ich da nutzen ?</p>
<p>vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545361</guid><dc:creator><![CDATA[Karl02]]></dc:creator><pubDate>Mon, 21 Jun 2004 21:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 21:37:05 GMT]]></title><description><![CDATA[<p>was meinst du mit dos?<br />
win32 konsole, oder 16bit dos?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545364</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Mon, 21 Jun 2004 21:37:05 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 21:38:28 GMT]]></title><description><![CDATA[<p>16 bit DOS möchte gleich im Bootvorgang zwischen 2 Programmen wählen können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545366</guid><dc:creator><![CDATA[Karl02]]></dc:creator><pubDate>Mon, 21 Jun 2004 21:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 21:43:23 GMT]]></title><description><![CDATA[<p>16 bit, no.</p>
<p>dann exec, spawn, system... (zum bleistift mal im djgpp schaun, mit dem studio kommst du sowieso nicht auf 16 bit runter <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>
<p>shell execute ist eine winapi funktion.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545372</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545372</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Mon, 21 Jun 2004 21:43:23 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 21:45:15 GMT]]></title><description><![CDATA[<p>kannst du mir vieleicht code posten bitte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545374</guid><dc:creator><![CDATA[Karl02]]></dc:creator><pubDate>Mon, 21 Jun 2004 21:45:15 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 21:48:50 GMT]]></title><description><![CDATA[<p>ich hoffe, du weißt, daß das visual studion kein richtiges dos kann.</p>
<p>hier ein paar funktionen, die dir unter dos helfen:</p>
<pre><code>#include &lt;unistd.h&gt;

int execl(const char *path, const char *argv0, ...);
int execle(const char *path, const char *argv0, ...
           /*, char *const envp[] */);
int execlp(const char *path, const char *argv0, ...);
int execlpe(const char *path, const char *argv0, ...
            /*, char *const envp[] */);

int execv(const char *path, char *const argv[]);
int execve(const char *path, char *const argv[], char *const envp[]);
int execvp(const char *path, char *const argv[]);
int execvpe(const char *path, char *const argv[], char *const envp[]);
</code></pre>
<pre><code>spawn*
Syntax

#include &lt;process.h&gt;

int spawnl(int mode, const char *path, const char *argv0, ..., NULL);
int spawnle(int mode, const char *path, const char *argv0, ...,
            NULL /*, const char **envp */);
int spawnlp(int mode, const char *path, const char *argv0, ..., NULL);
int spawnlpe(int mode, const char *path, const char *argv0, ...,
             NULL /*, const char **envp */);

int spawnv(int mode, const char *path, char *const argv[]);
int spawnve(int mode, const char *path, char *const argv[],
            char *const envp[]);
int spawnvp(int mode, const char *path, char *const argv[]);
int spawnvpe(int mode, const char *path, char *const argv[],
             char *const envp[]);

Description

These functions run other programs. The path points to the program to run, and 
may optionally include its extension. These functions will look for a file path
 with the extensions `.com', `.exe', `.bat', and `.btm'; if none are found, 
neither in the current directory nor along the `PATH', they will look for path 
itself.

`.com' programs are invoked via the usual DOS calls; DJGPP `.exe' programs are 
invoked in a way that allows long command lines to be passed; other `.exe' 
programs are invoked via DOS; `.bat' and `.btm' programs are invoked via the 
command processor given by the `COMSPEC' environment variable; `.sh', `.ksh' 
programs and programs with any other extensions that have #! as their first two
 characters are assumed to be Unix-style scripts and are invoked by calling a 
program whose pathname immediately follows the first two characters. (If the 
name of that program is a Unix-style pathname, without a drive letter and 
without an extension, like `/bin/sh', the spawn functions will additionally look
 them up on the `PATH'; this allows to run Unix scripts without editing, if you 
have a shell installed somewhere along your `PATH'.) Any non-recognizable files 
will be also invoked via DOS calls.
</code></pre>
<pre><code>char *environ[] = {
  &quot;PATH=c:\\dos;c:\\djgpp;c:\\usr\\local\\bin&quot;,
  &quot;DJGPP=c:/djgpp&quot;,
  0
};

char *args[] = {
  &quot;gcc&quot;,
  &quot;-v&quot;,
  &quot;hello.c&quot;,
  0
};

spawnvpe(P_WAIT, &quot;gcc&quot;, args, environ);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/545375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545375</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Mon, 21 Jun 2004 21:48:50 GMT</pubDate></item><item><title><![CDATA[Reply to ShellExecute in Konsolenanwendung einbinden on Mon, 21 Jun 2004 21:52:26 GMT]]></title><description><![CDATA[<p>dank dir ich probiere mal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/545380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/545380</guid><dc:creator><![CDATA[Karl02]]></dc:creator><pubDate>Mon, 21 Jun 2004 21:52:26 GMT</pubDate></item></channel></rss>