Accessing a USB port

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have looked through all the VB.Net help and this forum but I cannot find
any mention of how to read and write to a USB port.
Is it possible in VB? Can some one point me to some documentation?
Thanks
 
Hello RichG,

One of the samples is there http://www.developerfusion.co.uk/show/4392/1/

R> I have looked through all the VB.Net help and this forum but I cannot
R> find
R> any mention of how to read and write to a USB port.
R> Is it possible in VB? Can some one point me to some documentation?
R> Thanks
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
Thanks Michael
I thought .Net might have better i/o control. I'll probably just end up
buying a USB libary from someone. That should be the easyest thing to do.
 
What sorts of things do you want to do? I doubt if there is any single
"general purpose" library. Often the USB device manufacturer prvides the
device driver -- this may or may not have an accessable API. There are
classes of USB devices (HID) for which there are standard APIs, and, of
course, there are other devices that are less common, but that also have
standard APIs.

What I'd suggest that you do is to get a book like Jan Axelson's USB
Complete 3rd Edition, which includes .NET information. This is a good
starting point, IMO. I have a link to it under Books on my homepage.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Is there a reason why you can't just get the Drive letter and use the IO
library to do your operations? Getting all removable drives from the
filesystem will get you the drive letters of the USB storage devices that are
plugged in.
 
Back
Top