I want to make a simple device, which is just a button (or possibly several ones), and i want to be able to get the state of these buttons (down-up) in my C++ application, problem is, i have never done such thing before (or lets say, i have never tried to use hardware with my apps)
So i suppose it should be something like this: the device should have a usb cable, and i need to write a driver for it, and the driver sends info to my application
my questions are:
1- how to create the driver?
2- after creation, how do the driver communicate with my application?
I' be really thankful if someone coul point me in the right direction, as i dont even know where to start
using windows 7 32-bit
the only language i know is C++, so i hope i dont need to learn another in order to do this
regards
-Hassan