<?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[Fehler in der winuser.h ?]]></title><description><![CDATA[<p>Hallo,<br />
ich habe gerade folgenden code gekompilert:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;winuser.h&gt;
#include &lt;Windows.h&gt;

using namespace std;

int main()
{
    if(FindWindow(NULL,&quot;Testfenster&quot;))
        cout &lt;&lt; &quot;Es hat geklappt&quot; &lt;&lt; endl;
    else
        cout &lt;&lt; &quot;Es hat nicht geklappt&quot; &lt;&lt; endl;
    return 0;
}
</code></pre>
<p>Mein Compiler (C..B) öffnet nun die winuser heade datei und zeigt 40 errors an:</p>
<blockquote>
<p>-------------- Build: Debug in srobot ---------------</p>
<p>Compiling: main.cpp<br />
In file included from C:\Users\Desktop\say\main.cpp:2:<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error: typedef <code>BOOL' is initialized (use \_\_typeof\_\_ instead) C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error:</code>CALLBACK' was not declared in this scope<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error: <code>DLGPROC' was not declared in this scope C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error: expected</code>,' or <code>;' before '(' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error: typedef</code>VOID' is initialized (use __typeof__ instead)<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error: <code>CALLBACK' was not declared in this scope C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error:</code>TIMERPROC' was not declared in this scope<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error: expected <code>,' or</code>;' before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2464: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error: typedef</code>LRESULT' is initialized (use __typeof__ instead)<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error: <code>CALLBACK' was not declared in this scope C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error:</code>HOOKPROC' was not declared in this scope<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error: expected <code>,' or</code>;' before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2466: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2467: error: expected</code>)' before '<em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2468: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2469: error: expected</code>)' before '</em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2470: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2471: error: expected</code>)' before '<em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2472: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2473: error: expected</code>)' before '</em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2474: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2475: error: expected</code>)' before '<em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2476: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2477: error: expected</code>)' before '</em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2478: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2479: error:</code>NAMEENUMPROCA' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2480: error: <code>NAMEENUMPROCW' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2481: error:</code>NAMEENUMPROCA' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2482: error: <code>NAMEENUMPROCW' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2483: error: expected</code>)' before '*' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2484: error: expected constructor, destructor, or type conversion before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2485: error: expected constructor, destructor, or type conversion before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2486: error: expected constructor, destructor, or type conversion before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2488: error: <code>BYTE' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2489: error:</code>WORD' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2490: error: <code>WORD' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2493: error:</code>UINT' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2494: error: <code>DWORD' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2495: error:</code>DWORD' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2498: error: <code>UINT' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2502: error:</code>LPVOID' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2503: error: <code>HINSTANCE' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2504: error:</code>HMENU' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2505: error: <code>HWND' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2510: error:</code>LONG' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2511: error: <code>LPCSTR' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2512: error:</code>LPCSTR' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2513: error: <code>DWORD' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2516: error:</code>LPVOID' does not name a type<br />
Process terminated with status 1 (0 minutes, 4 seconds)<br />
50 errors, 0 warnings</p>
</blockquote>
<p>Ich bin total überfordert. Kann mir da wer helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/218764/fehler-in-der-winuser-h</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 01:29:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/218764.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Jul 2008 23:11:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler in der winuser.h ? on Thu, 24 Jul 2008 23:11:04 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe gerade folgenden code gekompilert:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;winuser.h&gt;
#include &lt;Windows.h&gt;

using namespace std;

int main()
{
    if(FindWindow(NULL,&quot;Testfenster&quot;))
        cout &lt;&lt; &quot;Es hat geklappt&quot; &lt;&lt; endl;
    else
        cout &lt;&lt; &quot;Es hat nicht geklappt&quot; &lt;&lt; endl;
    return 0;
}
</code></pre>
<p>Mein Compiler (C..B) öffnet nun die winuser heade datei und zeigt 40 errors an:</p>
<blockquote>
<p>-------------- Build: Debug in srobot ---------------</p>
<p>Compiling: main.cpp<br />
In file included from C:\Users\Desktop\say\main.cpp:2:<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error: typedef <code>BOOL' is initialized (use \_\_typeof\_\_ instead) C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error:</code>CALLBACK' was not declared in this scope<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error: <code>DLGPROC' was not declared in this scope C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2462: error: expected</code>,' or <code>;' before '(' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error: typedef</code>VOID' is initialized (use __typeof__ instead)<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error: <code>CALLBACK' was not declared in this scope C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error:</code>TIMERPROC' was not declared in this scope<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2463: error: expected <code>,' or</code>;' before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2464: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error: typedef</code>LRESULT' is initialized (use __typeof__ instead)<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error: <code>CALLBACK' was not declared in this scope C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error:</code>HOOKPROC' was not declared in this scope<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2465: error: expected <code>,' or</code>;' before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2466: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2467: error: expected</code>)' before '<em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2468: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2469: error: expected</code>)' before '</em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2470: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2471: error: expected</code>)' before '<em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2472: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2473: error: expected</code>)' before '</em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2474: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2475: error: expected</code>)' before '<em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2476: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2477: error: expected</code>)' before '</em>' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2478: error: expected <code>)' before '*' token C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2479: error:</code>NAMEENUMPROCA' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2480: error: <code>NAMEENUMPROCW' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2481: error:</code>NAMEENUMPROCA' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2482: error: <code>NAMEENUMPROCW' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2483: error: expected</code>)' before '*' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2484: error: expected constructor, destructor, or type conversion before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2485: error: expected constructor, destructor, or type conversion before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2486: error: expected constructor, destructor, or type conversion before '(' token<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2488: error: <code>BYTE' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2489: error:</code>WORD' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2490: error: <code>WORD' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2493: error:</code>UINT' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2494: error: <code>DWORD' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2495: error:</code>DWORD' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2498: error: <code>UINT' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2502: error:</code>LPVOID' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2503: error: <code>HINSTANCE' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2504: error:</code>HMENU' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2505: error: <code>HWND' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2510: error:</code>LONG' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2511: error: <code>LPCSTR' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2512: error:</code>LPCSTR' does not name a type<br />
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2513: error: <code>DWORD' does not name a type C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winuser.h:2516: error:</code>LPVOID' does not name a type<br />
Process terminated with status 1 (0 minutes, 4 seconds)<br />
50 errors, 0 warnings</p>
</blockquote>
<p>Ich bin total überfordert. Kann mir da wer helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1553280</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553280</guid><dc:creator><![CDATA[fragr]]></dc:creator><pubDate>Thu, 24 Jul 2008 23:11:04 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in der winuser.h ? on Fri, 25 Jul 2008 03:02:03 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p><strong>nur</strong> <em>&lt;windows.h&gt;</em> (&quot;enthält&quot; bereits <em>&lt;winuser.h&gt;</em>) includieren!</p>
<p>MfG,</p>
<p>Probe-Nutzer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1553305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553305</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Fri, 25 Jul 2008 03:02:03 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in der winuser.h ? on Fri, 25 Jul 2008 08:20:38 GMT]]></title><description><![CDATA[<p>Du hast dir wahrscheinlich die Doku zu FindWindow angesehen (an sich sehr löblich) und unter den Requirements Folgendes wohl nur überflogen bzw. falsch verstanden:</p>
<p>M$ schrieb:</p>
<blockquote>
<p>Declared in Winuser.h, include Windows.h</p>
</blockquote>
<p>Deklariert in winuser.h, aber windows.h inkludieren. Diesen Rat solltest du auch beachten. Immer nur die windows.h einbinden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1553386</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553386</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Fri, 25 Jul 2008 08:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in der winuser.h ? on Fri, 25 Jul 2008 08:51:55 GMT]]></title><description><![CDATA[<p>Danke danke <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/1553405</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553405</guid><dc:creator><![CDATA[fragr]]></dc:creator><pubDate>Fri, 25 Jul 2008 08:51:55 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in der winuser.h ? on Fri, 25 Jul 2008 10:44:31 GMT]]></title><description><![CDATA[<blockquote>
<p>error: `WM_MINIMIZE' was not declared in this scope</p>
</blockquote>
<p>Kann mir wer sagen wo das deklariert wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1553488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553488</guid><dc:creator><![CDATA[fragr2]]></dc:creator><pubDate>Fri, 25 Jul 2008 10:44:31 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler in der winuser.h ? on Fri, 25 Jul 2008 12:37:57 GMT]]></title><description><![CDATA[<p>fragr2 schrieb:</p>
<blockquote>
<blockquote>
<p>error: `WM_MINIMIZE' was not declared in this scope</p>
</blockquote>
<p>Kann mir wer sagen wo das deklariert wird?</p>
</blockquote>
<p>Gibt es das überhaupt? Ich glaube, das kannst du mit WM_SIZE machen (wParam==SIZE_MINIMIZED).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1553570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1553570</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Fri, 25 Jul 2008 12:37:57 GMT</pubDate></item></channel></rss>