<?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[selbst kopieren]]></title><description><![CDATA[<p>hier ich hab nen codesnippsel gefunde damit sich ein programm an eine andere stelle compiert leider gibt immer fehler :</p>
<pre><code>#include &lt;stdio.h&gt;
#include &lt;windows.h&gt;
int main(int argc,char *argv[0])

{
  CopyFile(*argv[0],&quot;C:\\kopie.exe&quot;);
}
</code></pre>
<p>könnt ihr mir helfen</p>
<p>mfg<br />
bob der programmierende Baumeister</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162346/selbst-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 03:22:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162346.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Oct 2006 18:23:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to selbst kopieren on Tue, 17 Oct 2006 18:23:57 GMT]]></title><description><![CDATA[<p>hier ich hab nen codesnippsel gefunde damit sich ein programm an eine andere stelle compiert leider gibt immer fehler :</p>
<pre><code>#include &lt;stdio.h&gt;
#include &lt;windows.h&gt;
int main(int argc,char *argv[0])

{
  CopyFile(*argv[0],&quot;C:\\kopie.exe&quot;);
}
</code></pre>
<p>könnt ihr mir helfen</p>
<p>mfg<br />
bob der programmierende Baumeister</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156546</guid><dc:creator><![CDATA[bob der programmierende B]]></dc:creator><pubDate>Tue, 17 Oct 2006 18:23:57 GMT</pubDate></item><item><title><![CDATA[Reply to selbst kopieren on Tue, 17 Oct 2006 18:34:23 GMT]]></title><description><![CDATA[<p>Ich würde sagen</p>
<pre><code class="language-cpp">CopyFile(*argv[0],&quot;C:\\kopie.exe&quot;);
</code></pre>
<p>muss in Wahrheit heißen:</p>
<pre><code class="language-cpp">CopyFile(argv[0],&quot;C:\\kopie.exe&quot;);
</code></pre>
<p>Durch das Dereferenzieren nimmt man sonst nur den ersten Buchstaben des Dateipfads...</p>
<p>BTW: Das ist kein Standard-C++ und gehört nicht in dieses Forum.</p>
<p>Felix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156558</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156558</guid><dc:creator><![CDATA[Phoemuex]]></dc:creator><pubDate>Tue, 17 Oct 2006 18:34:23 GMT</pubDate></item><item><title><![CDATA[Reply to selbst kopieren on Tue, 17 Oct 2006 18:43:55 GMT]]></title><description><![CDATA[<p>hmm erster fehler schon mal weg aber Dev-c++ zeigt immernoch :</p>
<pre><code>too few arguments to function `BOOL CopyFileA(const CHAR *, const CHAR *, int)'
</code></pre>
<p>an</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156565</guid><dc:creator><![CDATA[bob der programmierende B]]></dc:creator><pubDate>Tue, 17 Oct 2006 18:43:55 GMT</pubDate></item><item><title><![CDATA[Reply to selbst kopieren on Tue, 17 Oct 2006 18:51:28 GMT]]></title><description><![CDATA[<p>Ja, keine Ahnung wofür der letzte Parameter da ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> , aber bei den Seiten, die ich durch googeln gefunden habe, wurde einfach als dritter Parameter 0 übergeben, kannst es ja mal damit probieren:</p>
<pre><code class="language-cpp">CopyFile(argv[0],&quot;C:\\kopie.exe&quot;,0);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1156571</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156571</guid><dc:creator><![CDATA[Phoemuex]]></dc:creator><pubDate>Tue, 17 Oct 2006 18:51:28 GMT</pubDate></item><item><title><![CDATA[Reply to selbst kopieren on Tue, 17 Oct 2006 19:10:11 GMT]]></title><description><![CDATA[<p>Es ist immer angebracht, auch eine entsprechende Fehlermeldung mitzuposten - außerdem steht in der Fehlerbeschreibung doch, was das Problem ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156583</guid><dc:creator><![CDATA[bäM]]></dc:creator><pubDate>Tue, 17 Oct 2006 19:10:11 GMT</pubDate></item><item><title><![CDATA[Reply to selbst kopieren on Wed, 18 Oct 2006 07:04:47 GMT]]></title><description><![CDATA[<p>MSDN schrieb:</p>
<blockquote>
<p>CopyFile</p>
<p>The CopyFile function copies an existing file to a new file.</p>
<p>The CopyFileEx function provides two additional capabilities. CopyFileEx can call a specified callback function each time a portion of the copy operation is completed, and CopyFileEx can be canceled during the copy operation.</p>
<p>BOOL CopyFile(<br />
LPCTSTR lpExistingFileName,<br />
LPCTSTR lpNewFileName,<br />
BOOL bFailIfExists<br />
);</p>
<p>Parameters<br />
lpExistingFileName<br />
[in] Pointer to a null-terminated string that specifies the name of an existing file.<br />
In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend &quot;\?\&quot; to the path. For more information, see Naming a File.</p>
<p>Windows Me/98/95: This string must not exceed MAX_PATH characters.</p>
<p>lpNewFileName<br />
[in] Pointer to a null-terminated string that specifies the name of the new file.<br />
In the ANSI version of this function, the name is limited to MAX_PATH characters. To extend this limit to 32,767 wide characters, call the Unicode version of the function and prepend &quot;\?\&quot; to the path. For more information, see Naming a File.</p>
<p>Windows Me/98/95: This string must not exceed MAX_PATH characters.</p>
<p>bFailIfExists<br />
[in] If this parameter is TRUE and the new file specified by lpNewFileName already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.<br />
Return Values<br />
If the function succeeds, the return value is nonzero.</p>
<p>If the function fails, the return value is zero. To get extended error information, call GetLastError.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1156745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156745</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 18 Oct 2006 07:04:47 GMT</pubDate></item><item><title><![CDATA[Reply to selbst kopieren on Wed, 18 Oct 2006 08:14:10 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=403" rel="nofollow">HumeSikkins</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/1156790</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156790</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 18 Oct 2006 08:14:10 GMT</pubDate></item></channel></rss>