Communicating with a USB device via C/C+

  • Thread starter Thread starter HMS Surprise
  • Start date Start date
H

HMS Surprise

I have just installed a new USB device which is functioning since the
demo tool talks to it just fine and it is listed in the device driver
table. However, the relevant documentation says little more than run
setup.exe. This is a new area for me so I would appreciate you pointing
me to some general documentation that covers communicating w/ device
drivers. Will be using Visual Studio C++ with XP or Server 2003.


Thanks,

jh
 
HMS Surprise said:
I have just installed a new USB device which is functioning since the
demo tool talks to it just fine and it is listed in the device driver
table. However, the relevant documentation says little more than run
setup.exe. This is a new area for me so I would appreciate you pointing
me to some general documentation that covers communicating w/ device
drivers. Will be using Visual Studio C++ with XP or Server 2003.


Thanks,

jh

Most USB devices do not require any installation under WinXP.
Windows Plug & Play takes care of the details. If you think that
you must run setup.exe, check the documentation carefully. Perhaps
setup.exe is included for Windows 98 machines only.

Other than this it is not possible to give you any specific advice
because you're not telling us what this USB device is. Is it a flash
disk? A hard disk? A keyboard? A mouse? A camera? An
MP3 player (which is a glorified flash disk)? Remember that
we cannot see your PC!
 
Pegasus said:
Most USB devices do not require any installation under WinXP.
Windows Plug & Play takes care of the details. If you think that
you must run setup.exe, check the documentation carefully. Perhaps
setup.exe is included for Windows 98 machines only.

Other than this it is not possible to give you any specific advice
because you're not telling us what this USB device is. Is it a flash
disk? A hard disk? A keyboard? A mouse? A camera? An
MP3 player (which is a glorified flash disk)? Remember that
we cannot see your PC!

Thanks for posting!

Sorry, should have stated that the device is an ID-Tech credit card
reader that is setup as a USB/HID. I wouldn't have thought that running
setup was necessary either but the demo and config utilities failed to
work until after I downloaded the Opus driver package and ran
setup(Wizard). These applications now work fine. Now I need to develop
an app that communicates with this device. I assume that I must provide
the api read and write functions some sort of identification. I am
thinking that I can find some identification under the hardware key of
the registry.

I am afraid it is quite apparent that I have no experience with Windows
based development. Haven't been avoiding it, just the way my career has
run. Looking forward to learning tho.

Thanks again,

jh
 
Back
Top