<?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[Suchen mit WIN32_FIND_DATA macht Schwierigkeiten ?]]></title><description><![CDATA[<p>Hallo Leute!</p>
<pre><code class="language-cpp">int main(int argc, char *argv[])
{
    WIN32_FIND_DATA fileinfo; 

    HANDLE x = FindFirstFile(&quot;c:\\*.*&quot;, &amp;fileinfo); 

    char fileName[MAX_PATH]; 

    strcpy(fileName, fileinfo.cFileName); 

    MessageBox(NULL, fileinfo.cFileName, &quot;1.&quot;, 0);

    while(FindNextFile(x, &amp;fileinfo)) 
    {

    // MessageBox(NULL, fileinfo.cFileName, &quot;next&quot;, 0);

    if(fileinfo.cFileName == &quot;AUTOEXEC.BAT&quot;) {

    MessageBox(NULL, &quot;Gefunden&quot;, &quot;next&quot;, 0);

    }

    } 

}
</code></pre>
<p>Also: Das Suchen selbst klappt wunderbar. Mir werden alle Dateien bzw. Ordner in einem Verzeichnis (in diesem Fall C: selbst) aufgelistet. Doch sobald ich überprüfe, ob ein bestimmter Dateiname vorkommt wird das Programm nach der Ausgabe der 1. Datei/Ordner beendet. Woran liegt das?</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/95029/suchen-mit-win32_find_data-macht-schwierigkeiten</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 15:39:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/95029.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Dec 2004 13:49:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Suchen mit WIN32_FIND_DATA macht Schwierigkeiten ? on Wed, 15 Dec 2004 13:49:46 GMT]]></title><description><![CDATA[<p>Hallo Leute!</p>
<pre><code class="language-cpp">int main(int argc, char *argv[])
{
    WIN32_FIND_DATA fileinfo; 

    HANDLE x = FindFirstFile(&quot;c:\\*.*&quot;, &amp;fileinfo); 

    char fileName[MAX_PATH]; 

    strcpy(fileName, fileinfo.cFileName); 

    MessageBox(NULL, fileinfo.cFileName, &quot;1.&quot;, 0);

    while(FindNextFile(x, &amp;fileinfo)) 
    {

    // MessageBox(NULL, fileinfo.cFileName, &quot;next&quot;, 0);

    if(fileinfo.cFileName == &quot;AUTOEXEC.BAT&quot;) {

    MessageBox(NULL, &quot;Gefunden&quot;, &quot;next&quot;, 0);

    }

    } 

}
</code></pre>
<p>Also: Das Suchen selbst klappt wunderbar. Mir werden alle Dateien bzw. Ordner in einem Verzeichnis (in diesem Fall C: selbst) aufgelistet. Doch sobald ich überprüfe, ob ein bestimmter Dateiname vorkommt wird das Programm nach der Ausgabe der 1. Datei/Ordner beendet. Woran liegt das?</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/673694</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/673694</guid><dc:creator><![CDATA[gamble]]></dc:creator><pubDate>Wed, 15 Dec 2004 13:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to Suchen mit WIN32_FIND_DATA macht Schwierigkeiten ? on Wed, 15 Dec 2004 14:00:20 GMT]]></title><description><![CDATA[<p>du kannst keinen char (siehe struct) mit == vergleichen dafür nimmt man strcmp<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strcmp.2c_.wcscmp.2c_._mbscmp.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_strcmp.2c_.wcscmp.2c_._mbscmp.asp</a></p>
<p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/win32_find_data_str.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/win32_find_data_str.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/673705</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/673705</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 15 Dec 2004 14:00:20 GMT</pubDate></item><item><title><![CDATA[Reply to Suchen mit WIN32_FIND_DATA macht Schwierigkeiten ? on Wed, 15 Dec 2004 14:10:31 GMT]]></title><description><![CDATA[<p>Schlimm, wie oberflächlich ich gucken kann <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="😃"
    /></p>
<p>Danke für die schnelle Antwort.</p>
<p>gamble</p>
]]></description><link>https://www.c-plusplus.net/forum/post/673720</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/673720</guid><dc:creator><![CDATA[gamble]]></dc:creator><pubDate>Wed, 15 Dec 2004 14:10:31 GMT</pubDate></item></channel></rss>