<?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[SHFileOperation bringt immer ne Fehlermeldung...]]></title><description><![CDATA[<p>Hallo,<br />
der folgende Code kopiert zwar mein gewünschtes Verzeichnis, aber bringt danach immer eine Fehlermeldung &quot;yyy kann nicht kopiert werden. Datei kann nicht gefunden werden.&quot; Warum? Erkennt der Code nicht wann das Verzeichnis<strong>ende</strong> erreicht ist?</p>
<pre><code class="language-cpp">CString m_strCopyVon = &quot;c:\\hilfe\\win&quot;;
CString m_strCopyNach = &quot;c:\\tmp\\dircopy_files\\&quot;;

SHFILEOPSTRUCT lpShFileStruct;
lpShFileStruct.pFrom = m_strCopyVon;
lpShFileStruct.pTo = m_strCopyNach;
lpShFileStruct.wFunc = FO_COPY;
lpShFileStruct.fFlags = FOF_NOCONFIRMMKDIR | FOF_NOCONFIRMATION;
lpShFileStruct.fAnyOperationsAborted = FALSE;
lpShFileStruct.hwnd = NULL;
SHFileOperation(&amp;lpShFileStruct);
</code></pre>
<p>Greets</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/73654/shfileoperation-bringt-immer-ne-fehlermeldung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 22:16:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/73654.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 12 May 2004 13:54:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SHFileOperation bringt immer ne Fehlermeldung... on Wed, 12 May 2004 13:54:55 GMT]]></title><description><![CDATA[<p>Hallo,<br />
der folgende Code kopiert zwar mein gewünschtes Verzeichnis, aber bringt danach immer eine Fehlermeldung &quot;yyy kann nicht kopiert werden. Datei kann nicht gefunden werden.&quot; Warum? Erkennt der Code nicht wann das Verzeichnis<strong>ende</strong> erreicht ist?</p>
<pre><code class="language-cpp">CString m_strCopyVon = &quot;c:\\hilfe\\win&quot;;
CString m_strCopyNach = &quot;c:\\tmp\\dircopy_files\\&quot;;

SHFILEOPSTRUCT lpShFileStruct;
lpShFileStruct.pFrom = m_strCopyVon;
lpShFileStruct.pTo = m_strCopyNach;
lpShFileStruct.wFunc = FO_COPY;
lpShFileStruct.fFlags = FOF_NOCONFIRMMKDIR | FOF_NOCONFIRMATION;
lpShFileStruct.fAnyOperationsAborted = FALSE;
lpShFileStruct.hwnd = NULL;
SHFileOperation(&amp;lpShFileStruct);
</code></pre>
<p>Greets</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519007</guid><dc:creator><![CDATA[Schnueffi77]]></dc:creator><pubDate>Wed, 12 May 2004 13:54:55 GMT</pubDate></item><item><title><![CDATA[Reply to SHFileOperation bringt immer ne Fehlermeldung... on Wed, 12 May 2004 14:18:26 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>Schuß ins Blaue...</p>
<p>Hier mal ein Ausschnitt aus der MDSN:</p>
<p>MSDN schrieb:</p>
<blockquote>
<p>pFrom<br />
Address of a buffer to specify one or more source file names. These names must be fully qualified paths. Standard Microsoft<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/00ae.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--registered"
      title=":registered:"
      alt="®"
    /> MS-DOS<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/00ae.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--registered"
      title=":registered:"
      alt="®"
    /> wild cards, such as &quot;*&quot;, are permitted in the file-name position. Although this member is declared as a null-terminated string, it is used as a buffer to hold multiple file names. Each file name must be terminated by a single NULL character. An additional NULL character must be appended to the end of the final name to indicate the end of pFrom.</p>
</blockquote>
<p>Ich glaube du musst als &quot;Von&quot; einen oder mehrere Dateien angeben. Als Ziel reicht ein Verzeichnis...</p>
<p>Weiss es aber nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/519027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/519027</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Wed, 12 May 2004 14:18:26 GMT</pubDate></item></channel></rss>