<?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[MOUSE_INPUT undeclared]]></title><description><![CDATA[<p>Zuallererst möcht ich vorausschicken, dass ich mich nicht sonderlich gut mit programmierung auskenne, also bitte keine gemeinen kommentare <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="😞"
    /> und etwas geduld ^^</p>
<p>Also hier mein problem:<br />
Ich wollte mit SendInpt ( <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp</a> )<br />
einen Mausklick simulieren. Aber beim compilieren mit DevCpp bekomm ich u.a. diese Fehlermeldungen:</p>
<pre><code>P_TestiMain.cpp:22: error: `KEYBDINPUT' does not name a type
P_TestiMain.cpp:23: error: `HARDWAREINPUT' does not name a type
P_TestiMain.cpp:31: error: `LPINPUT' has not been declared
P_TestiMain.cpp:33: error: ISO C++ forbids declaration of `pInputs' with no type
P_TestiMain.cpp:53: error: `INPUT_MOUSE' undeclared (first use this function)
</code></pre>
<p>included hab ich</p>
<pre><code>#include &lt;iostream.h&gt;
#include &lt;windows.h&gt;
#include &lt;winuser.h&gt;
</code></pre>
<p>bitte sagt mir, was ich falsch mach <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/topic/140281/mouse_input-undeclared</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 12:19:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/140281.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 13 Mar 2006 16:48:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Mon, 13 Mar 2006 16:48:47 GMT]]></title><description><![CDATA[<p>Zuallererst möcht ich vorausschicken, dass ich mich nicht sonderlich gut mit programmierung auskenne, also bitte keine gemeinen kommentare <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="😞"
    /> und etwas geduld ^^</p>
<p>Also hier mein problem:<br />
Ich wollte mit SendInpt ( <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp</a> )<br />
einen Mausklick simulieren. Aber beim compilieren mit DevCpp bekomm ich u.a. diese Fehlermeldungen:</p>
<pre><code>P_TestiMain.cpp:22: error: `KEYBDINPUT' does not name a type
P_TestiMain.cpp:23: error: `HARDWAREINPUT' does not name a type
P_TestiMain.cpp:31: error: `LPINPUT' has not been declared
P_TestiMain.cpp:33: error: ISO C++ forbids declaration of `pInputs' with no type
P_TestiMain.cpp:53: error: `INPUT_MOUSE' undeclared (first use this function)
</code></pre>
<p>included hab ich</p>
<pre><code>#include &lt;iostream.h&gt;
#include &lt;windows.h&gt;
#include &lt;winuser.h&gt;
</code></pre>
<p>bitte sagt mir, was ich falsch mach <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/1015535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1015535</guid><dc:creator><![CDATA[Drop]]></dc:creator><pubDate>Mon, 13 Mar 2006 16:48:47 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Mon, 13 Mar 2006 20:25:36 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=10455" rel="nofollow">evilissimo</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1015693</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1015693</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 13 Mar 2006 20:25:36 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Mon, 13 Mar 2006 20:32:03 GMT]]></title><description><![CDATA[<p>Vermutlich hat DevC++ noch ein alter PSDK und somit kennt es diese Typen noch nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1015700</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1015700</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 13 Mar 2006 20:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Mon, 13 Mar 2006 20:44:15 GMT]]></title><description><![CDATA[<p>Die aktuellen Header für MinGW gibt es hier: <a href="http://prdownloads.sourceforge.net/mingw/w32api-3.6.tar.gz?download" rel="nofollow">http://prdownloads.sourceforge.net/mingw/w32api-3.6.tar.gz?download</a></p>
<p>winuser.h included man ausserdem 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>
]]></description><link>https://www.c-plusplus.net/forum/post/1015710</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1015710</guid><dc:creator><![CDATA[g]]></dc:creator><pubDate>Mon, 13 Mar 2006 20:44:15 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Wed, 15 Mar 2006 20:52:41 GMT]]></title><description><![CDATA[<blockquote>
<p>Vermutlich hat DevC++ noch ein alter PSDK und somit kennt es diese Typen noch nicht...</p>
</blockquote>
<p>ich hab das psdk gdownloaded und das includeverzeichnis kopiert, aber .... es geht immer noch nicht ( jetzt grieg ich sogar noch mehr fehlermeldungen als vorher XD), außerdem noch derartige warnungen:</p>
<pre><code>C:/Dev-Cpp/include/windef.h:52:1: warning: &quot;MAX_PATH&quot; redefined
C:/Dev-Cpp/include/stdlib.h:46:1: warning: this is the location of the previous definition
In file included from C:/Dev-Cpp/include/windef.h:166,
                 from C:/Dev-Cpp/include/excpt.h:20,
                 from C:/Dev-Cpp/include/windows.h:157,
C:/Dev-Cpp/include/winnt.h:237:1: warning: &quot;_cdecl&quot; redefined
&lt;built-in&gt;:83:1: warning: this is the location of the previous definition
C:/Dev-Cpp/include/winnt.h:674:2: #error Must define a target architecture.
In file included from C:/Dev-Cpp/include/msxml.h:274,
                 from C:/Dev-Cpp/include/urlmon.h:254,
                 from C:/Dev-Cpp/include/objbase.h:951,
                 from C:/Dev-Cpp/include/ole2.h:69,
                 from C:/Dev-Cpp/include/windows.h:207,
C:/Dev-Cpp/include/oaidl.h:442:1: pasting &quot;/&quot; and &quot;/&quot; does not give a valid preprocessing token
In file included from C:/Dev-Cpp/include/msxml.h:274,
                 from C:/Dev-Cpp/include/urlmon.h:254,
                 from C:/Dev-Cpp/include/objbase.h:951,
                 from C:/Dev-Cpp/include/ole2.h:69,
                 from C:/Dev-Cpp/include/windows.h:207,
C:/Dev-Cpp/include/oaidl.h:442: error: expected unqualified-id before '/' token
C:/Dev-Cpp/include/oaidl.h:457:1: pasting &quot;/&quot; and &quot;/&quot; does not give a valid preprocessing token
.
.
.
</code></pre>
<blockquote>
<p>Die aktuellen Header für MinGW gibt es hier: <a href="http://prdownloads.sourceforge.net/mingw/w32api-3.6.tar.gz?download" rel="nofollow">http://prdownloads.sourceforge.net/mingw/w32api-3.6.tar.gz?download</a></p>
</blockquote>
<p>ich kann das format nicht entpacken <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="😞"
    /> , braucht man dazu ein spezielles programm (habs mit WinRAR und Winace probiert)</p>
<blockquote>
<p>winuser.h included man ausserdem nicht.</p>
</blockquote>
<p>sicher?? ich hab schon ein paar programme gesehen, bei denen winuser.h included wurde.<br />
wie bindet man das sonst ein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017160</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017160</guid><dc:creator><![CDATA[Drop]]></dc:creator><pubDate>Wed, 15 Mar 2006 20:52:41 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Thu, 16 Mar 2006 12:44:01 GMT]]></title><description><![CDATA[<p>Drop schrieb:</p>
<blockquote>
<blockquote>
<p>winuser.h included man ausserdem nicht.</p>
</blockquote>
<p>sicher?? ich hab schon ein paar programme gesehen, bei denen winuser.h included wurde.<br />
wie bindet man das sonst ein?</p>
</blockquote>
<p>Das wird von windows.h erledigt - deswegen heißt es in der MSDN-Library auch immer &quot;Declared in Winuser.h, include Windows.h&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017473</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 16 Mar 2006 12:44:01 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Thu, 16 Mar 2006 12:47:27 GMT]]></title><description><![CDATA[<p>Das Platform SDK funktioniert eigentlich nur mit Visual C++.</p>
<p>Um das oben verlinkte Paket zu entpacken kannst du z.B. 7zip nehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017479</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017479</guid><dc:creator><![CDATA[g]]></dc:creator><pubDate>Thu, 16 Mar 2006 12:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Thu, 16 Mar 2006 14:01:42 GMT]]></title><description><![CDATA[<p>Soll ich Dich in das Compiler-Forum verschieben? da Dein Problem nicht direkt was mit der WinAPI zu tun hat... sondern Compiler spezifisch ist...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017553</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017553</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 16 Mar 2006 14:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Thu, 16 Mar 2006 15:03:32 GMT]]></title><description><![CDATA[<blockquote>
<p>Das Platform SDK funktioniert eigentlich nur mit Visual C++.</p>
</blockquote>
<p>ja ^^ is mir im nachhinein auch eingefallen (hab´s schonwieder rückgängig gemacht)</p>
<blockquote>
<p>Um das oben verlinkte Paket zu entpacken kannst du z.B. 7zip nehmen.</p>
</blockquote>
<p>das entpacken klappt jetzt, aber ich bekomm immernoch die gleichen fehlermeldungen</p>
<blockquote>
<p>Soll ich Dich in das Compiler-Forum verschieben? da Dein Problem nicht direkt was mit der WinAPI zu tun hat... sondern Compiler spezifisch ist...</p>
</blockquote>
<p>... ja wär vielleicht besser</p>
<blockquote>
<p>Das wird von windows.h erledigt - deswegen heißt es in der MSDN-Library auch immer &quot;Declared in Winuser.h, include Windows.h&quot;</p>
</blockquote>
<p>danke, wieder was gelernt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017608</guid><dc:creator><![CDATA[Drop]]></dc:creator><pubDate>Thu, 16 Mar 2006 15:03:32 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Thu, 16 Mar 2006 15:15:34 GMT]]></title><description><![CDATA[<p>Habs mir mal angeschaut.</p>
<pre><code class="language-cpp">#if (_WIN32_WINNT &lt; 0x0403)
UINT WINAPI SendInput(UINT,LPINPUT,int);
#endif
</code></pre>
<p>Jetzt kann Jochen Kalmbach dir sagen wie es richtig geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017624</guid><dc:creator><![CDATA[g]]></dc:creator><pubDate>Thu, 16 Mar 2006 15:15:34 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Thu, 16 Mar 2006 15:18:30 GMT]]></title><description><![CDATA[<p>...mir leuchtet die Bedingung nämlich nicht ein. Meiner Meinung müsste _WIN32_WINNT &gt; als 0x0403 sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017626</guid><dc:creator><![CDATA[g]]></dc:creator><pubDate>Thu, 16 Mar 2006 15:18:30 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Thu, 16 Mar 2006 16:32:04 GMT]]></title><description><![CDATA[<p>In meiner winuser.h (ist glaub' nicht die aktuellste Version) heißt es noch:</p>
<pre><code class="language-cpp">#if (_WIN32_WINNT &gt; 0x0400)
</code></pre>
<p>Du müsstest also nur vor dem einbinden von windows.h _WIN32_WINNT über ein #define auf einen größeren Wert als 0x0400 bzw. 0x0403 setzen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017695</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 16 Mar 2006 16:32:04 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Sun, 19 Mar 2006 22:45:16 GMT]]></title><description><![CDATA[<p>so richtig ?:</p>
<pre><code>#define _WIN32_WINNT 0x0404
</code></pre>
<p>.... jedenfalls funktioniert es nicht, wenn ich _WIN32_WINNT auf einen wert &lt;0x0402 setze bekomme ich die selben fehlermeldungen wie vorher, aber wenn ich einen größeren wert setze kommen diese hier:</p>
<pre><code>error: redefinition of `struct tagMOUSEINPUT'
/winuser.h:3109: error: previous definition of `struct tagMOUSEINPUT'
error: ISO C++ forbids declaration of `MOUSEINPUT' with no type
error: conflicting declaration 'typedef int MOUSEINPUT'
/winuser.h:3116: error: 'MOUSEINPUT' has a previous declaration as `typedef struct tagMOUSEINPUT MOUSEINPUT'
error: declaration of `typedef int MOUSEINPUT'
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1019999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1019999</guid><dc:creator><![CDATA[Drop]]></dc:creator><pubDate>Sun, 19 Mar 2006 22:45:16 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Mon, 20 Mar 2006 09:09:22 GMT]]></title><description><![CDATA[<p>Du bindest jetzt aber winuser.h nicht mehr direkt ein, oder? Und das define hast du oberhalb von &quot;#include &lt;windows.h&gt;&quot; stehen?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1020112</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1020112</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Mon, 20 Mar 2006 09:09:22 GMT</pubDate></item><item><title><![CDATA[Reply to MOUSE_INPUT undeclared on Mon, 20 Mar 2006 12:55:40 GMT]]></title><description><![CDATA[<p>omg ich glaub ich hab das problem gelöst ^^, DANKE DANKE DANKE für eure hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1020241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1020241</guid><dc:creator><![CDATA[Drop]]></dc:creator><pubDate>Mon, 20 Mar 2006 12:55:40 GMT</pubDate></item></channel></rss>