<?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 KeyHook]]></title><description><![CDATA[<p>Hi!<br />
Ich hab mir mal diesen Code geschnappt:<br />
<a href="http://www.codeproject.com/KB/system/KeyHook.aspx" rel="nofollow">http://www.codeproject.com/KB/system/KeyHook.aspx</a><br />
Nun hab ich aber ein großes Problem. Ich kann keinen Key hinzufügen:<br />
KEYENTRY ke;<br />
ke.nMessage = WM_KEYHOOK;<br />
ke.hCallWnd = Handle;<br />
ke.hHookWnd = 0;<br />
ke.iCombKeys = 0;<br />
ke.iIndicators = 0;<br />
ke.iKeyEvent = KH_KEY_DOWN;<br />
ke.iMinVKCode = 0;<br />
ke.iMaxVKCode = 255;<br />
// Add the entry to the hook<br />
AddKeyEntry(&amp;ke); //Hier ist der Fehler<br />
[/cpp]<br />
Ich bekomme die Fehler:</p>
<pre><code>[C++ Fehler] FOptionen.cpp(81): E2034 Konvertierung von 'tagKeyEntry *' nach 'int' nicht möglich
[C++ Fehler] FOptionen.cpp(81): E2342 Keine Übereinstimmung des Typs beim Parameter 'LPCKEYENTRY' ('int' erwartet, 'tagKeyEntry *' erhalten)
</code></pre>
<p>Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/227779/problem-mit-keyhook</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 03:01:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/227779.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Nov 2008 22:17:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit KeyHook on Thu, 20 Nov 2008 17:57:40 GMT]]></title><description><![CDATA[<p>Hi!<br />
Ich hab mir mal diesen Code geschnappt:<br />
<a href="http://www.codeproject.com/KB/system/KeyHook.aspx" rel="nofollow">http://www.codeproject.com/KB/system/KeyHook.aspx</a><br />
Nun hab ich aber ein großes Problem. Ich kann keinen Key hinzufügen:<br />
KEYENTRY ke;<br />
ke.nMessage = WM_KEYHOOK;<br />
ke.hCallWnd = Handle;<br />
ke.hHookWnd = 0;<br />
ke.iCombKeys = 0;<br />
ke.iIndicators = 0;<br />
ke.iKeyEvent = KH_KEY_DOWN;<br />
ke.iMinVKCode = 0;<br />
ke.iMaxVKCode = 255;<br />
// Add the entry to the hook<br />
AddKeyEntry(&amp;ke); //Hier ist der Fehler<br />
[/cpp]<br />
Ich bekomme die Fehler:</p>
<pre><code>[C++ Fehler] FOptionen.cpp(81): E2034 Konvertierung von 'tagKeyEntry *' nach 'int' nicht möglich
[C++ Fehler] FOptionen.cpp(81): E2342 Keine Übereinstimmung des Typs beim Parameter 'LPCKEYENTRY' ('int' erwartet, 'tagKeyEntry *' erhalten)
</code></pre>
<p>Kann mir da jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1617413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1617413</guid><dc:creator><![CDATA[*gt*Bocky*lt*]]></dc:creator><pubDate>Thu, 20 Nov 2008 17:57:40 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit KeyHook on Fri, 21 Nov 2008 17:12:31 GMT]]></title><description><![CDATA[<p>gelöst: Ich hatte die Header-Datei der dll nur in die cpp-Datei des Projekts included, anstatt in die Headerdatei des Projekts</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1618481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1618481</guid><dc:creator><![CDATA[*gt*Bocky*lt*]]></dc:creator><pubDate>Fri, 21 Nov 2008 17:12:31 GMT</pubDate></item></channel></rss>