<?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[struct: Illegal use of type as an expression]]></title><description><![CDATA[<p>Hi<br />
ich verstehe diesen Fehler überhaupt nicht:<br />
in einer funktion deklariere ich:</p>
<pre><code>PMOUSE_INPUT_DATA cur;
</code></pre>
<p>die struct ist in einem header wie folgt definiert:</p>
<pre><code>typedef struct _MOUSE_INPUT_DATA {

    //
    // Unit number.  E.g., for \Device\PointerPort0  the unit is '0',
    // for \Device\PointerPort1 the unit is '1', and so on.
    //

    USHORT UnitId;

    //
    // Indicator flags.
    //

    USHORT Flags;

    //
    // The transition state of the mouse buttons.
    //

    union {
        ULONG Buttons;
        struct  {
            USHORT  ButtonFlags;
            USHORT  ButtonData;
        };
    };

    //
    // The raw state of the mouse buttons.
    //

    ULONG RawButtons;

    //
    // The signed relative or absolute motion in the X direction.
    //

    LONG LastX;

    //
    // The signed relative or absolute motion in the Y direction.
    //

    LONG LastY;

    //
    // Device-specific additional information for the event.
    //

    ULONG ExtraInformation;

} MOUSE_INPUT_DATA, *PMOUSE_INPUT_DATA;
</code></pre>
<p>in &lt;ntddmou.h&gt; aus dem WinDDK</p>
<p>produziert c2275: Illegal use of type as an expression mit dem microsoft x64 compiler 15.00. Hab ich was grobes übersehen, oder was ist los?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/295456/struct-illegal-use-of-type-as-an-expression</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 11:15:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/295456.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Nov 2011 15:58:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to struct: Illegal use of type as an expression on Mon, 14 Nov 2011 15:58:19 GMT]]></title><description><![CDATA[<p>Hi<br />
ich verstehe diesen Fehler überhaupt nicht:<br />
in einer funktion deklariere ich:</p>
<pre><code>PMOUSE_INPUT_DATA cur;
</code></pre>
<p>die struct ist in einem header wie folgt definiert:</p>
<pre><code>typedef struct _MOUSE_INPUT_DATA {

    //
    // Unit number.  E.g., for \Device\PointerPort0  the unit is '0',
    // for \Device\PointerPort1 the unit is '1', and so on.
    //

    USHORT UnitId;

    //
    // Indicator flags.
    //

    USHORT Flags;

    //
    // The transition state of the mouse buttons.
    //

    union {
        ULONG Buttons;
        struct  {
            USHORT  ButtonFlags;
            USHORT  ButtonData;
        };
    };

    //
    // The raw state of the mouse buttons.
    //

    ULONG RawButtons;

    //
    // The signed relative or absolute motion in the X direction.
    //

    LONG LastX;

    //
    // The signed relative or absolute motion in the Y direction.
    //

    LONG LastY;

    //
    // Device-specific additional information for the event.
    //

    ULONG ExtraInformation;

} MOUSE_INPUT_DATA, *PMOUSE_INPUT_DATA;
</code></pre>
<p>in &lt;ntddmou.h&gt; aus dem WinDDK</p>
<p>produziert c2275: Illegal use of type as an expression mit dem microsoft x64 compiler 15.00. Hab ich was grobes übersehen, oder was ist los?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2144439</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2144439</guid><dc:creator><![CDATA[Kontrasubjekt]]></dc:creator><pubDate>Mon, 14 Nov 2011 15:58:19 GMT</pubDate></item><item><title><![CDATA[Reply to struct: Illegal use of type as an expression on Mon, 14 Nov 2011 16:11:24 GMT]]></title><description><![CDATA[<p>*Müll*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2144446</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2144446</guid><dc:creator><![CDATA[DocShoe]]></dc:creator><pubDate>Mon, 14 Nov 2011 16:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to struct: Illegal use of type as an expression on Mon, 14 Nov 2011 16:30:29 GMT]]></title><description><![CDATA[<p>Machst du zufällig C? Das klingt so, als hättest du einen alten C89-Compiler benutzt, der seine Deklarationen am Anfang einer Funktion haben möchte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2144454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2144454</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 14 Nov 2011 16:30:29 GMT</pubDate></item><item><title><![CDATA[Reply to struct: Illegal use of type as an expression on Mon, 14 Nov 2011 16:47:57 GMT]]></title><description><![CDATA[<p>das war es. Wusste nicht dass der microsoft compiler c89 macht.<br />
Vielen Dank!<br />
(Sorry dass ich in der C++ sektion geposted hab btw, ist aus Gewohnheit.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2144461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2144461</guid><dc:creator><![CDATA[Kontrasubjekt]]></dc:creator><pubDate>Mon, 14 Nov 2011 16:47:57 GMT</pubDate></item></channel></rss>