<?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[Problem mit KeyboardHook]]></title><description><![CDATA[<p>Ich versuche folgenden Tipp aus der FAQ zu nutzen:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39383.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39383.html</a></p>
<p>Nur leider kommen immer folgenden Fehlermeldungen:</p>
<p>In file included from hookdll.c:1:<br />
hookdll.h:10: error: syntax error before &quot;CALLBACK&quot;</p>
<p>hookdll.h:10: warning: parameter names (without types) in function declaration</p>
<p>hookdll.h:10: warning: data definition has no type or storage class<br />
hookdll.h:11: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.h:11: warning: data definition has no type or storage class<br />
hookdll.c:12: error: syntax error before &quot;hWindow&quot;<br />
hookdll.c:12: warning: data definition has no type or storage class<br />
hookdll.c:21: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.c:21: error: syntax error before &quot;WPARAM&quot;</p>
<p>hookdll.c:21: warning: data definition has no type or storage class<br />
hookdll.c:24: error: syntax error before &quot;hhkHook&quot;<br />
hookdll.c:24: warning: data definition has no type or storage class<br />
hookdll.c:25: error: syntax error before &quot;hDllInstance&quot;<br />
hookdll.c:25: warning: data definition has no type or storage class<br />
hookdll.c:35: error: syntax error before &quot;DllMain&quot;</p>
<p>hookdll.c:35: error: syntax error before &quot;hInstance&quot;<br />
hookdll.c: In function <code>DllMain': hookdll.c:36: error:</code>fdwReason' undeclared (first use in this function)<br />
hookdll.c:36: error: (Each undeclared identifier is reported only once<br />
hookdll.c:36: error: for each function it appears in.)<br />
hookdll.c:37: error: <code>DLL\_PROCESS\_ATTACH' undeclared (first use in this function) hookdll.c:40: error:</code>hInstance' undeclared (first use in this function)</p>
<p>hookdll.c:44: error: <code>TRUE' undeclared (first use in this function) hookdll.c: At top level: hookdll.c:53: error: syntax error before &quot;CALLBACK&quot; hookdll.c:53: error: syntax error before &quot;hParent&quot; hookdll.c: In function</code>SetupHook':<br />
hookdll.c:54: error: <code>hParent' undeclared (first use in this function) hookdll.c:56: error:</code>WH_KEYBOARD' undeclared (first use in this function)<br />
hookdll.c:56: error: <code>NULL' undeclared (first use in this function) hookdll.c:59: error:</code>TRUE' undeclared (first use in this function)<br />
hookdll.c: At top level:<br />
hookdll.c:69: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.c:69: error: syntax error before &quot;WPARAM&quot;<br />
hookdll.c: In function <code>KeyboardHookProc': hookdll.c:70: error:</code>nCode' undeclared (first use in this function)<br />
hookdll.c:70: error: <code>HC_ACTION' undeclared (first use in this function) hookdll.c:72: error:</code>lParam' undeclared (first use in this function)</p>
<p>hookdll.c:74: error: <code>HWND' undeclared (first use in this function) hookdll.c:74: error: syntax error before &quot;hWindow&quot; hookdll.c:80: error:</code>wParam' undeclared (first use in this function)</p>
<p>hookdll.c: At top level:<br />
hookdll.c:91: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.c: In function <code>UninstallHook': hookdll.c:94: error:</code>TRUE' undeclared (first use in this function)</p>
<p>make.exe: *** [hookdll.o] Error 1</p>
<p>Ausführung beendet</p>
<p>Wie kann ich diese Fehler beheben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/187732/problem-mit-keyboardhook</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 11:18:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/187732.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Jul 2007 13:49:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit KeyboardHook on Mon, 23 Jul 2007 13:49:58 GMT]]></title><description><![CDATA[<p>Ich versuche folgenden Tipp aus der FAQ zu nutzen:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39383.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39383.html</a></p>
<p>Nur leider kommen immer folgenden Fehlermeldungen:</p>
<p>In file included from hookdll.c:1:<br />
hookdll.h:10: error: syntax error before &quot;CALLBACK&quot;</p>
<p>hookdll.h:10: warning: parameter names (without types) in function declaration</p>
<p>hookdll.h:10: warning: data definition has no type or storage class<br />
hookdll.h:11: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.h:11: warning: data definition has no type or storage class<br />
hookdll.c:12: error: syntax error before &quot;hWindow&quot;<br />
hookdll.c:12: warning: data definition has no type or storage class<br />
hookdll.c:21: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.c:21: error: syntax error before &quot;WPARAM&quot;</p>
<p>hookdll.c:21: warning: data definition has no type or storage class<br />
hookdll.c:24: error: syntax error before &quot;hhkHook&quot;<br />
hookdll.c:24: warning: data definition has no type or storage class<br />
hookdll.c:25: error: syntax error before &quot;hDllInstance&quot;<br />
hookdll.c:25: warning: data definition has no type or storage class<br />
hookdll.c:35: error: syntax error before &quot;DllMain&quot;</p>
<p>hookdll.c:35: error: syntax error before &quot;hInstance&quot;<br />
hookdll.c: In function <code>DllMain': hookdll.c:36: error:</code>fdwReason' undeclared (first use in this function)<br />
hookdll.c:36: error: (Each undeclared identifier is reported only once<br />
hookdll.c:36: error: for each function it appears in.)<br />
hookdll.c:37: error: <code>DLL\_PROCESS\_ATTACH' undeclared (first use in this function) hookdll.c:40: error:</code>hInstance' undeclared (first use in this function)</p>
<p>hookdll.c:44: error: <code>TRUE' undeclared (first use in this function) hookdll.c: At top level: hookdll.c:53: error: syntax error before &quot;CALLBACK&quot; hookdll.c:53: error: syntax error before &quot;hParent&quot; hookdll.c: In function</code>SetupHook':<br />
hookdll.c:54: error: <code>hParent' undeclared (first use in this function) hookdll.c:56: error:</code>WH_KEYBOARD' undeclared (first use in this function)<br />
hookdll.c:56: error: <code>NULL' undeclared (first use in this function) hookdll.c:59: error:</code>TRUE' undeclared (first use in this function)<br />
hookdll.c: At top level:<br />
hookdll.c:69: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.c:69: error: syntax error before &quot;WPARAM&quot;<br />
hookdll.c: In function <code>KeyboardHookProc': hookdll.c:70: error:</code>nCode' undeclared (first use in this function)<br />
hookdll.c:70: error: <code>HC_ACTION' undeclared (first use in this function) hookdll.c:72: error:</code>lParam' undeclared (first use in this function)</p>
<p>hookdll.c:74: error: <code>HWND' undeclared (first use in this function) hookdll.c:74: error: syntax error before &quot;hWindow&quot; hookdll.c:80: error:</code>wParam' undeclared (first use in this function)</p>
<p>hookdll.c: At top level:<br />
hookdll.c:91: error: syntax error before &quot;CALLBACK&quot;<br />
hookdll.c: In function <code>UninstallHook': hookdll.c:94: error:</code>TRUE' undeclared (first use in this function)</p>
<p>make.exe: *** [hookdll.o] Error 1</p>
<p>Ausführung beendet</p>
<p>Wie kann ich diese Fehler beheben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1330864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1330864</guid><dc:creator><![CDATA[DeLay]]></dc:creator><pubDate>Mon, 23 Jul 2007 13:49:58 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit KeyboardHook on Mon, 23 Jul 2007 17:18:02 GMT]]></title><description><![CDATA[<p>erstmal würde uns interessieren : welchen compiler verwendest du?<br />
und dann ohne mir die fehlermeldungen genau durchgelesen zu haben, scheint es mir, als ob du da irgendwas ziemlich falsch machst, wenn sie gleich in so einem rudel auftreten.</p>
<p>also du solltest so vorgehen:</p>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> neues projekt erstellen (wenn es die option dll-projekt gibt dann wähle die!)<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> du musst beachten, dass der code auf eine header- und eine sourcedatei aufgeteilt werden muss. nicht einfach so durch den compiler jagen!<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> wenn du ein normales konsolenprojekt gewählt hast, dann musst es jetzt noch auf dll umstellen<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> nochmal checken ob alle libs und header am start sind (windows.h, user32.lib) und normal bauen, danach solltest du die entsprechende dll (ggf. mit lib) erhalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1331016</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1331016</guid><dc:creator><![CDATA[~eddi~]]></dc:creator><pubDate>Mon, 23 Jul 2007 17:18:02 GMT</pubDate></item></channel></rss>