reading from a usb device

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
hemanth kumar

reading from a usb device

Post by hemanth kumar » Wed Jul 07, 2010 11:53 am

hello all
I am trying to write and read from an usb device like USB mouse and USB keyboard.I am using windows APIs in vb6.The problem is like this.whenever i call the APIs readfile and writefile, it returns 0 and does not return any data.Before reading data,I have successfully called APIs to detect the device name and its pid. Does any one know the reason why the bytes returned is always 0.Any type of help will be highly appreciated.


hemanth
bh.hemanth@gmail.com

frank26080115
Rank 2
Rank 2
Posts: 43
Joined: Fri Jun 19, 2009 4:43 pm

Re: reading from a usb device

Post by frank26080115 » Wed Jul 07, 2010 6:29 pm

I'm not sure if you can read data from devices that already have a driver loaded.

Post Reply