// test2.cpp : Defines the entry point for the console application. // #define _WIN32_WINNT 0x0501 #include <windows.h> #include <stdout.h> #include <stdio.h> #include <iostream.h> #include "stdafx.h" using namespace std; int main() { INPUT* x; //x=new struct tagINPUT; //printf(sizeof(struct tagINPUT)); printf("hello"); return 0; }
The piece of coe above keeps complaining INPUT is an undefined identifier - even though it is defined in winuser.h (pulled in with windows.h). Any ideas why it's not working appreciated.