<?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[Wie kann man das machen ?]]></title><description><![CDATA[<p>Kann man von einem Programm, das man selber geschrieben hat, eine andere Datei öffnen, z.B. eine Word Datei ? Mein Code sieht bis jetzt so aus, und nach der Passwortabfrage, sollte sich, wenn das Passwort richtig ist, das Programm öffenen, aber wie geht das denn ?<br />
Bitte helft mir !</p>
<p>Gruß<br />
Lars</p>
<pre><code class="language-cpp">#include &lt;iostream&gt; 

using namespace std; 

/* clock example: countdown */
#include &lt;stdio.h&gt;
#include &lt;time.h&gt;

void wait ( int seconds )
{
  clock_t endwait;
  endwait = clock () + seconds * CLK_TCK ;
  while (clock() &lt; endwait) {}
}

int main ()
{
	int x;
  int n;
  printf (&quot;Starting countdown...\n&quot;);
  for (n=10; n&gt;0; n--)
  {
    printf (&quot;%d\n&quot;,n);
    wait (1);
  }
	cout &lt;&lt; &quot;Passwort eingeben: &quot; &lt;&lt; endl; 
    cin &gt;&gt; x; 

    if (x == 10) 

        cout &lt;&lt; &quot;Richtig!&quot; &lt;&lt; endl; 

    else 

        cout &lt;&lt; &quot;Falsches Passwort!&quot; &lt;&lt; endl; 

    return 0; 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/123985/wie-kann-man-das-machen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 23 Aug 2026 19:27:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/123985.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Oct 2005 07:21:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie kann man das machen ? on Sat, 22 Oct 2005 07:21:47 GMT]]></title><description><![CDATA[<p>Kann man von einem Programm, das man selber geschrieben hat, eine andere Datei öffnen, z.B. eine Word Datei ? Mein Code sieht bis jetzt so aus, und nach der Passwortabfrage, sollte sich, wenn das Passwort richtig ist, das Programm öffenen, aber wie geht das denn ?<br />
Bitte helft mir !</p>
<p>Gruß<br />
Lars</p>
<pre><code class="language-cpp">#include &lt;iostream&gt; 

using namespace std; 

/* clock example: countdown */
#include &lt;stdio.h&gt;
#include &lt;time.h&gt;

void wait ( int seconds )
{
  clock_t endwait;
  endwait = clock () + seconds * CLK_TCK ;
  while (clock() &lt; endwait) {}
}

int main ()
{
	int x;
  int n;
  printf (&quot;Starting countdown...\n&quot;);
  for (n=10; n&gt;0; n--)
  {
    printf (&quot;%d\n&quot;,n);
    wait (1);
  }
	cout &lt;&lt; &quot;Passwort eingeben: &quot; &lt;&lt; endl; 
    cin &gt;&gt; x; 

    if (x == 10) 

        cout &lt;&lt; &quot;Richtig!&quot; &lt;&lt; endl; 

    else 

        cout &lt;&lt; &quot;Falsches Passwort!&quot; &lt;&lt; endl; 

    return 0; 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/898445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/898445</guid><dc:creator><![CDATA[Burnout]]></dc:creator><pubDate>Sat, 22 Oct 2005 07:21:47 GMT</pubDate></item><item><title><![CDATA[Reply to Wie kann man das machen ? on Sat, 22 Oct 2005 07:30:11 GMT]]></title><description><![CDATA[<p>Unter Windows: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/shellexecute.asp" rel="nofollow">ShellExecute</a>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/898449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/898449</guid><dc:creator><![CDATA[godlikebot]]></dc:creator><pubDate>Sat, 22 Oct 2005 07:30:11 GMT</pubDate></item><item><title><![CDATA[Reply to Wie kann man das machen ? on Sat, 22 Oct 2005 07:31:47 GMT]]></title><description><![CDATA[<p>tut mir leid, aber kannst du mir oder jemand anders mal erklären wie das geht ?<br />
Das wäre dann nämlich sehr hilfreich !</p>
<p>Gruß<br />
Lars</p>
]]></description><link>https://www.c-plusplus.net/forum/post/898450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/898450</guid><dc:creator><![CDATA[Burnout]]></dc:creator><pubDate>Sat, 22 Oct 2005 07:31:47 GMT</pubDate></item><item><title><![CDATA[Reply to Wie kann man das machen ? on Sat, 22 Oct 2005 11:00:08 GMT]]></title><description><![CDATA[<p>Ist eigentlich eher ne Frage für's WinAPI Forum.<br />
Irgendwo am Anfang deines Codes brauchst du ein &quot;#include &lt;windows.h&gt;&quot;.<br />
Dann kannst du mit</p>
<pre><code class="language-cpp">ShellExecute(NULL, &quot;open&quot;, &quot;C:\\DeineDate.doc&quot;, NULL, NULL, SW_SHOWNORMAL);
</code></pre>
<p>ne Datei mit dem dafür vorgesehenem Programm öffnen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/898566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/898566</guid><dc:creator><![CDATA[godlikebot]]></dc:creator><pubDate>Sat, 22 Oct 2005 11:00:08 GMT</pubDate></item></channel></rss>