SendInput problem
-
HI Well this SendInput function is giving :mad::mad:me a lot of problems i cannot declare KEYBDINPUT and INPUT types VC++ gives me error saying "Undeclared Identifier" i have include "winuser.h" as well as "wndows.h" even checked on the library settings "user32.lib" but no luck still giving me the error i know the syntax but i find myself in a helpless situation please help me out here i even tried this ::KEYBDINPUT but it still gives me error concerning the namespace i dont know wat to do please help me out and yes i am working on windows xp and using visual C++ ver 6.0 i hope these are enuff clues to help u guys figure out the problem THANKS IN ADVANCE
-
HI Well this SendInput function is giving :mad::mad:me a lot of problems i cannot declare KEYBDINPUT and INPUT types VC++ gives me error saying "Undeclared Identifier" i have include "winuser.h" as well as "wndows.h" even checked on the library settings "user32.lib" but no luck still giving me the error i know the syntax but i find myself in a helpless situation please help me out here i even tried this ::KEYBDINPUT but it still gives me error concerning the namespace i dont know wat to do please help me out and yes i am working on windows xp and using visual C++ ver 6.0 i hope these are enuff clues to help u guys figure out the problem THANKS IN ADVANCE
You don't need to include 'winuser.h' since it is already included in 'windows.h'. The only thing you need to do is add the following line of code BEFORE you include 'windows.h'. So your code should like this:
#define _WIN32_WINNT 0x0500 #include <windows.h>
Hope this gets you along... RicoH Don't think you are, know you are...