<?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[Include funktioniert nicht]]></title><description><![CDATA[<p>Wenn ich den folgenden Header einbinde:</p>
<pre><code class="language-cpp">#include &lt;winbase.h&gt;
</code></pre>
<p>und in folgende Funktion aufrufe:</p>
<pre><code class="language-cpp">ReadDirectoryChangesW(hDir, &amp;Buffer, sizeof(Buffer),
                                TRUE,
                                FILE_NOTIFY_CHANGE_SECURITY |
                                FILE_NOTIFY_CHANGE_CREATION |
                                FILE_NOTIFY_CHANGE_LAST_ACCESS |
                                FILE_NOTIFY_CHANGE_LAST_WRITE |
                                FILE_NOTIFY_CHANGE_SIZE |
                                FILE_NOTIFY_CHANGE_ATTRIBUTES |
                                FILE_NOTIFY_CHANGE_DIR_NAME |
                                FILE_NOTIFY_CHANGE_FILE_NAME,
                                &amp;BytesReturned,
                                NULL,
                                NULL))
</code></pre>
<p>meldet mir der Compiler immer dass ReadDirectoryChangesW() ein nicht deklarierter Bezeichner ist, obwohl in der MSDN steht, dass die funktion in winbase.h definiert ist. Was ist mein Fehler muss da noch irgendwas einstellen, so dass der die findet?</p>
<p>LG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76027/include-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 05:38:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76027.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Jun 2004 09:09:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 09:09:50 GMT]]></title><description><![CDATA[<p>Wenn ich den folgenden Header einbinde:</p>
<pre><code class="language-cpp">#include &lt;winbase.h&gt;
</code></pre>
<p>und in folgende Funktion aufrufe:</p>
<pre><code class="language-cpp">ReadDirectoryChangesW(hDir, &amp;Buffer, sizeof(Buffer),
                                TRUE,
                                FILE_NOTIFY_CHANGE_SECURITY |
                                FILE_NOTIFY_CHANGE_CREATION |
                                FILE_NOTIFY_CHANGE_LAST_ACCESS |
                                FILE_NOTIFY_CHANGE_LAST_WRITE |
                                FILE_NOTIFY_CHANGE_SIZE |
                                FILE_NOTIFY_CHANGE_ATTRIBUTES |
                                FILE_NOTIFY_CHANGE_DIR_NAME |
                                FILE_NOTIFY_CHANGE_FILE_NAME,
                                &amp;BytesReturned,
                                NULL,
                                NULL))
</code></pre>
<p>meldet mir der Compiler immer dass ReadDirectoryChangesW() ein nicht deklarierter Bezeichner ist, obwohl in der MSDN steht, dass die funktion in winbase.h definiert ist. Was ist mein Fehler muss da noch irgendwas einstellen, so dass der die findet?</p>
<p>LG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534854</guid><dc:creator><![CDATA[housefreak]]></dc:creator><pubDate>Mon, 07 Jun 2004 09:09:50 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 09:27:53 GMT]]></title><description><![CDATA[<p>remarks beachten<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/readdirectorychangesw.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/readdirectorychangesw.asp</a></p>
<blockquote>
<p>To compile an application that uses this function, define the _WIN32_WINNT macro as 0x0400 or later. For more information, see Using the Windows Headers.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/534861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534861</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Jun 2004 09:27:53 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 09:50:17 GMT]]></title><description><![CDATA[<p>hab das jetzt so definiert funkzioniert aber immer noch net:</p>
<pre><code class="language-cpp">#ifndef WINVER
#define WINVER &gt;= 0x0400   // default to Windows Version 4.0
#endif
</code></pre>
<p>worin liegt der Fheler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534873</guid><dc:creator><![CDATA[housefreak]]></dc:creator><pubDate>Mon, 07 Jun 2004 09:50:17 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 10:02:59 GMT]]></title><description><![CDATA[<p>housefreak schrieb:</p>
<blockquote>
<pre><code class="language-cpp">#ifndef WINVER
#define WINVER &gt;= 0x0400   // default to Windows Version 4.0
#endif
</code></pre>
</blockquote>
<p>so kann es auch nicht funktionieren <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<pre><code class="language-cpp">#ifndef WINVER &lt; 0x0400
#define WINVER 0x0400
#endif
</code></pre>
<p>oder nur define langt auch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534884</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Jun 2004 10:02:59 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 10:10:47 GMT]]></title><description><![CDATA[<p>naja bekomm da nen warning:</p>
<p>C:\Konzepte\dirCon\dirCon.cpp(13) : warning C4067: Unerwartete Symbole nach Praeprozessor-Direktive - Zeilenvorschub erwartet</p>
<p>trotzdem funtzt das mit der Funktion immer noch nicht, was ist denn das für ein Müll?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534895</guid><dc:creator><![CDATA[housefreak]]></dc:creator><pubDate>Mon, 07 Jun 2004 10:10:47 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 10:30:21 GMT]]></title><description><![CDATA[<p>war auch ja blödsinn (mein fehler), es heisst #if nicht #ifndef, aber wie gesagt du kannst dir die abfrage schenken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534914</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Jun 2004 10:30:21 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 10:35:22 GMT]]></title><description><![CDATA[<p>Die Warnung hab ich wegbekommen, jetzt hab ich aber immer noch das Problem dass der mir die funktion:</p>
<p>ReadDirectoryChangesW() immer noch nicht kennt, obwohl ich die Header alles eingebunden hab? Woran kann das liegen?</p>
<p>hier mal mein Code:</p>
<pre><code class="language-cpp">// dirCon.cpp : Definiert den Einsprungpunkt für die Konsolenanwendung.
//

#include &quot;stdafx.h&quot;

#include &lt;windows.h&gt;
#include &lt;iostream&gt;
#include &lt;winbase.h&gt;

using namespace std;

#if WINVER &lt; 0x0400
#define WINVER 0x0400
#endif

int main(int argc, char* argv[])
{
	HANDLE file;
	file = FindFirstChangeNotification(&quot;C:\\test&quot;, TRUE, FILE_NOTIFY_CHANGE_FILE_NAME);

	WaitForSingleObject(file, INFINITE);
	cout &lt;&lt; &quot;treffer mit datei\n&quot;;

	while (true)
	{
		FindNextChangeNotification(file);
		WaitForSingleObject(file, INFINITE);
		cout &lt;&lt; &quot;treffer mit Datei\n&quot;;
	}

	FindCloseChangeNotification(file);

	////////////////////////////////////////////////////////////
	HANDLE hDir = CreateFile(&quot;C:\\test&quot;, 
							FILE_LIST_DIRECTORY,
							FILE_SHARE_READ || FILE_SHARE_DELETE,
							NULL,
							OPEN_EXISTING,
							FILE_FLAG_BACKUP_SEMANTICS,
							NULL);

	FILE_NOTIFY_INFORMATION Buffer[1024];
	DWORD BytesReturned;

	while (ReadDirectoryChangesW(hDir, &amp;Buffer, sizeof(Buffer),
								TRUE,
								FILE_NOTIFY_CHANGE_SECURITY |
								FILE_NOTIFY_CHANGE_CREATION |
								FILE_NOTIFY_CHANGE_LAST_ACCESS |
								FILE_NOTIFY_CHANGE_LAST_WRITE |
								FILE_NOTIFY_CHANGE_SIZE |
								FILE_NOTIFY_CHANGE_ATTRIBUTES |
								FILE_NOTIFY_CHANGE_DIR_NAME |
								FILE_NOTIFY_CHANGE_FILE_NAME,
								&amp;BytesReturned,
								NULL,
								NULL))
	{
		//
	}
	return 0;
}
</code></pre>
<p>Hoffe mir kann da jemand helfen bin über jeden Tipp dankbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534920</guid><dc:creator><![CDATA[housefreak]]></dc:creator><pubDate>Mon, 07 Jun 2004 10:35:22 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 10:37:30 GMT]]></title><description><![CDATA[<p>[edit]<br />
define muss vor dem includieren sein.</p>
<p>plattform sdk downgeloadet <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/534923</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534923</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Jun 2004 10:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 10:42:13 GMT]]></title><description><![CDATA[<p>wo bekomm ich das denn auf der ms seite find ich nix? nur so ne erweiterung für das sdk</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534929</guid><dc:creator><![CDATA[housefreak]]></dc:creator><pubDate>Mon, 07 Jun 2004 10:42:13 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 10:56:20 GMT]]></title><description><![CDATA[<p>habs gefunden download das ding dann erst mal!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/534942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534942</guid><dc:creator><![CDATA[housefreak]]></dc:creator><pubDate>Mon, 07 Jun 2004 10:56:20 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 11:29:44 GMT]]></title><description><![CDATA[<blockquote>
<p>Header: Declared in Winbase.h; <strong>include Windows.h</strong>.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/534965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534965</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 07 Jun 2004 11:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 11:32:08 GMT]]></title><description><![CDATA[<p>flenders schrieb:</p>
<blockquote>
<blockquote>
<p>Header: Declared in Winbase.h; <strong>include Windows.h</strong>.</p>
</blockquote>
</blockquote>
<p>stimmt. ist heut, glaub ich, net mein tag <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/534970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/534970</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Jun 2004 11:32:08 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 12:16:53 GMT]]></title><description><![CDATA[<p>bevor ich mir jetzt das Platform sdk runterlade versteh ich eins noch nicht hab da eine Beispielanwendung in der auch diese Funktion verwendet wird und dort bekomm ich keinen Fehler dass es die funktion</p>
<p>ReadDirectoryChangesW() nicht geben würde woran leigt das nur, ist das ein Müll!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/535014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/535014</guid><dc:creator><![CDATA[housefreak]]></dc:creator><pubDate>Mon, 07 Jun 2004 12:16:53 GMT</pubDate></item><item><title><![CDATA[Reply to Include funktioniert nicht on Mon, 07 Jun 2004 13:48:50 GMT]]></title><description><![CDATA[<p>wenn sich das bsp ohne probleme compilieren lässt dann hast du bei deiner anwendung was vergessen bzw. falsch gemacht. nochmal &quot;Requirements&quot; und &quot;Remarks&quot; überprüfen.<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/readdirectorychangesw.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/readdirectorychangesw.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/535105</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/535105</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Mon, 07 Jun 2004 13:48:50 GMT</pubDate></item></channel></rss>