Reading USB data in VB6 application.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Reading USB data in VB6 application.

Hybrid View

  1. #1
    Join Date
    May 2013

    Exclamation Reading USB data in VB6 application.

    Hello All,

    I have an VB6 application that gets data from a lasergun by RS232 (COM). Now we are receiving PC's that only have USB ports. If I connect the laser gun by USB I can receive data, as an keyboard input. The problem is that I don't want to allow that the focus go to other thing, than the application as with the COM communication (that there's an component MSCOMM that manages that). Can anyone help me to get a solution? Is there some component or way to do this?

    Thanks in adavnced


  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008

    Re: Reading USB data in VB6 application.

    You can get a RS232 adapter that you can plug into a usb port and then connect the scanner to that as a RS232 device and continue doing it the way you were.

    Trying to restrict focus to just a single field in your app could have some adverse effects you basically would not be able to use the pc for anything so long as your program was running.
    Always use [code][/code] tags when posting code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a survey!

HTML5 Development Center