Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendInput cannot be used 1

Status
Not open for further replies.

apatterno

Programmer
Nov 26, 2002
368
US
I have a problem trying to use SendInput in a program. When I use it, I get compiler messages saying that SendInput, the INPUT structure, etc, are undeclared. But I am staring straight at the declarations in winuser.h!!!

As a work around, I just copy and paste the prototypes directly into my Stdafx.h. Now the code compiles, but the linker complains that SendInput is an unresolved external.

Am I doing something wrong? I use Windows 98... the MSDN Library says it is supported in Windows 98. Are they wrong on this?

Please let me know if there is any light to be shed here. Thank you.

I REALLY hope that helps.
Will
 
Will,

"supported in W98" is another way of MS saying it is not included in the original release of VS6. I guess you need to update your header files and .lib files.

Or, if you do have the INPUT structure already, call it dynamically by using GetModuleHandle/LoadLibrary on user32.dll followed by GetProcAddress on SendInput.




Marcel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top