Thread: INPUT structure

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    204

    INPUT structure

    I am trying to declare an array of structures of type INPUT like this and I get the following errors:
    Code:
    #include <windows.h>
    
    INPUT a[2];
    error C2065: 'INPUT' : undeclared identifier
    error C2146: syntax error : missing ';' before identifier 'a'
    error C2065: 'a' : undeclared identifier
    error C2109: subscript requires array or pointer type

    I am linking the program to User32.lib when compiling and I don't see what I can possibily be doing wrong. Help please. Thanks.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    You have no type named INPUT defined.

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Some functions require a define. This define includes functions and features that are not available on earlier platforms. See MSDN: Using the SDK Headers.
    Code:
    #define _WIN32_WINNT 0x0500
    #include <windows.h>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. large program code ,please help
    By Ash1981 in forum C Programming
    Replies: 14
    Last Post: 01-30-2006, 06:16 AM
  2. Why wont my function exit correctly?
    By LightsOut06 in forum C Programming
    Replies: 2
    Last Post: 10-09-2005, 09:23 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Custom Made Safe Input Function
    By Beast() in forum C Programming
    Replies: 6
    Last Post: 08-21-2004, 10:19 PM
  5. invalid input
    By sworc66 in forum C Programming
    Replies: 8
    Last Post: 11-11-2003, 05:41 AM