How does one talk to a USB port

V

Vapour

Bought a bar code scanner, came with USB cable.
No drivers or anything like that.

I'm wondering how to listen to a device on a USB port.

Hoping theres a microsoft class or something that makes it relatively easy.

I've done serial ports before so familiar with the CreateFile idea, but cant
find any MSDN info on how to talk to a USB port.

Want to use VC++

Thx.
 
J

Jagadeesh VN

You can use CreateFile,ReadFile, and WriteFile methods for accessing the
USB.

Cheers
Jagadeesh
 
V

Vapour

Thx Jagadeesh, I gathered that, the question is really how do you get the
handle to a USB device, and what happens if there is a hub?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top