Problems with SendInput. It's not working?
Hi guys,
To use SendInput I need to use the INPUT structure. When I use the INPUT structure then compiler complains that INPUT is unknown.
INPUT is also not displayed in the drop down Intellisense list box on pressing ctrl+spacebar.
Can somebody help.
keyb_event works fine.
But why INPUT is not being identified.
It happened on VS6. OS - Win2000.
But the INPUT structure is working in WindowsXP!
What is your compiler warning/error? Show a piece of code!
Is there a chance that INPUT is defined to something else.
If you have a #define INPUT ANYTHING you can't use INPUT.
Are you sure you are using the correct SDK?
If so, is the correct WINVER set?
The INPUT structure is not even listed in the INTELLISENSE listbox.
On compilation it gives an error saying INPUT is unknown. Nothing else.
The same code works perfectly in XP.
I am in my office now. I don't have the error code now. But this is what it says exactly.
I opened up the winuser.h in which it is defined. It is there. So I don't think that will be a problem.
Thanks martin once again.