usb by visual basic

Discussion in 'Programmer's Corner' started by Isra2005, Sep 30, 2009.

  1. Isra2005

    Thread Starter New Member

    Feb 9, 2009
    2
    0
    how can i interface the usb using the visual basic 6?

    please help me
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    If you can specify a port for data transfer, then select the USB port. Will VB6 allow a specific port to be selected?
     
  3. dushuai

    New Member

    Sep 9, 2009
    10
    0
    Using VB6 several years,you may need add the windows object control,maybe usb interface control object to you project,so you can control or program it in VB6.
     
  4. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    It depends on the device. There must be a user mode driver (dll) available for that specific USB device/class for VB to be able to talk to that USB device. There are general mode USB device driver, but you still need to know the specific device setup before hand.

    What device are you thinking of?
     
  5. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    Trying to use a USB device in VB is like sticking a needle in your eye! Unless you can get a hold of some DLL or OCX file to use to communicate to the USB device then that would be the way to go...... Unless it is a USB drive then you could use API to communicate with it, or if it is a USB camera then use WDM interface in Windows.....


    Or if it is one of those FT USB IC'c, it should see it as a commport, then it is easy to communicate using the comm control.

    My .02
     
Loading...