VB 6.0 - Reading DATA From Device Attached to USB

Asked By shekhar jog on 26-Oct-11 08:38 AM
I want to read data from device attached to USB port. How this is possible

Thanks
smr replied to shekhar jog on 26-Oct-11 09:57 AM
hi

To Read/Write From USB Port, u will have to use "MSComm" Control. 
Check this Link : 

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/comm98/html/vbobjcommx.asp 

http://support.microsoft.com/kb/194922 

dipa ahuja replied to shekhar jog on 26-Oct-11 10:34 AM
To get you started I can tell you that most USB drives when plugged in are seen as "removable" hard disks which will be a slam dunk but some are also seen as "fixed" which may look like other hard drives. In this case you can check the bus type of the drive to see if it is usb and you will have your answer. The first step in your journey can be helped using this code found at...

http://support.microsoft.com/kb/q161300/ 

Don't worry the code there is VB 6. The second part is for the select case "fixed" determining the type of fixed drive you have there. That is where you will need to determine the bus type.

Hope this helps!

You may wish to look at:
http://www.vbcodesource.com/downloads/usbModulesFromIntel.zip