<?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[Kann Datei mit Variable nicht kopieren]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich hab schon rumprobiert aber es geht nicht, ich will eine Datei kopieren<br />
und der Pfad wo ich sie haben will steht in einer Variable, in dieser Variable steht &quot;C:&quot; nun will ich an die Variable noch &quot;\Mein Ordner&quot; anhängen. aber es geht nicht immer wenn ich es Compilieren will kommt ein Fehler.</p>
<p>Variable heist abc</p>
<pre><code>CopyFileA (&quot;test.txt&quot;, abc&quot;\\Mein Ordner\\test.txt&quot;, FALSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/156033/kann-datei-mit-variable-nicht-kopieren</link><generator>RSS for Node</generator><lastBuildDate>Tue, 08 Sep 2026 17:14:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/156033.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Aug 2006 10:29:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kann Datei mit Variable nicht kopieren on Sat, 12 Aug 2006 10:29:11 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich hab schon rumprobiert aber es geht nicht, ich will eine Datei kopieren<br />
und der Pfad wo ich sie haben will steht in einer Variable, in dieser Variable steht &quot;C:&quot; nun will ich an die Variable noch &quot;\Mein Ordner&quot; anhängen. aber es geht nicht immer wenn ich es Compilieren will kommt ein Fehler.</p>
<p>Variable heist abc</p>
<pre><code>CopyFileA (&quot;test.txt&quot;, abc&quot;\\Mein Ordner\\test.txt&quot;, FALSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1115882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115882</guid><dc:creator><![CDATA[--------&amp;lt; Finger &amp;gt;-]]></dc:creator><pubDate>Sat, 12 Aug 2006 10:29:11 GMT</pubDate></item><item><title><![CDATA[Reply to Kann Datei mit Variable nicht kopieren on Sat, 12 Aug 2006 10:56:28 GMT]]></title><description><![CDATA[<p>Hallo</p>
<blockquote>
<p>aber es geht nicht immer wenn ich es Compilieren will kommt ein Fehler</p>
</blockquote>
<p>Und was für eine Fehlermeldung?!</p>
<pre><code class="language-cpp">std::string abc = ... // Pfad;
abc += &quot;\\Mein Ordner\\test.txt&quot;; // anhängen
CopyFileA (&quot;test.txt&quot;, abc.c_str(), FALSE);
</code></pre>
<p>Wenn abc ein C-String ist, must du mit den str...-Funktionen arbeiten.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1115901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115901</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Sat, 12 Aug 2006 10:56:28 GMT</pubDate></item><item><title><![CDATA[Reply to Kann Datei mit Variable nicht kopieren on Sat, 12 Aug 2006 11:44:04 GMT]]></title><description><![CDATA[<p>Danke jetzt gehts, ich hab einfach die Variable statt den Pfad genommen.</p>
<pre><code>std::string wincopy = abc;  // hier steht nun die Variable abc
wincopy += &quot;\\asdd1.txt&quot;;

CopyFile (pfad, wincopy.c_str(), FALSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1115938</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1115938</guid><dc:creator><![CDATA[--&amp;lt; Finger &amp;gt;--]]></dc:creator><pubDate>Sat, 12 Aug 2006 11:44:04 GMT</pubDate></item></channel></rss>