Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 30th, 2006, 09:13 AM
Authorized User
 
Join Date: Aug 2005
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Default USB Port

I am developing an application in VB6, where I have to communicate with a device (Electronic weighing scale)through USB port, but I don't know how to open, read, and close this port in VB6. If someone knows how to do it, or has sample code, I would be highly grateful. Thanks you very much.

(I have already done the same work through Serial Port using MSComm control).

Best regards,
Khurram Adeeb Noorani



 
Old October 30th, 2006, 12:52 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Check out Jan Axelsons site:
http://www.lvr.com/

Woody Z http://www.learntoprogramnow.com
 
Old October 31st, 2006, 04:07 AM
Authorized User
 
Join Date: Aug 2005
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Default

good morning
@woodyz

thx 4 the helo friend ... but it is really very difficult 4 me 2 find the required thing in that website ... iz there anyone who can tell me the actual code to perform the aboved mentioned task

i'll w8 4 a good reply

 
Old October 31st, 2006, 04:10 AM
Authorized User
 
Join Date: Aug 2005
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Default

helo = help *****

 
Old October 31st, 2006, 12:21 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am suggesting that you get Jan Axelsons book.

Woody Z http://www.learntoprogramnow.com
 
Old October 31st, 2006, 06:39 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

USB communication takes place more at the level of a device driver. This is not an easily implemented thing. You are going to need a really well guided trip through this topic to get it right. Woody Z is giving you pure-gold advice. I looked into this myself, and am excited to see that there are books like Woody recommended, because that is exactly what's needed.

This absolutely is not a "Beginning VB" type of issue. Follow Woody's advice.
 
Old December 20th, 2006, 03:18 AM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by kanoorani
 I am developing an application in VB6, where I have to communicate with a device (Electronic weighing scale)through USB port, but I don't know how to open, read, and close this port in VB6. If someone knows how to do it, or has sample code, I would be highly grateful. Thanks you very much.

(I have already done the same work through Serial Port using MSComm control).

Best regards,
Khurram Adeeb Noorani



Naveed Dastagir Qureshi
 
Old February 17th, 2009, 01:05 PM
Registered User
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am trying to do something similar with VB 08. Can you help me out and tell me what you found? Thanks.

Will M.
will.martinez.gb@gmail.com
 
Old August 12th, 2009, 04:28 PM
Registered User
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default USB Scales another Solution

Hi kanoorani,

To communicate directly with a USB Scale (Do not come with a serial port driver) you can also use this software "Bill Redirect" from company www.BillProduction.com

Documentation:
How send USB Scale/Balance weight into your application Documentation:

http://www.billproduction.com/Bill_R..._scale_USB.pdf


Mark





Similar Threads
Thread Thread Starter Forum Replies Last Post
SMS Via USB Serial Port rodmcleay C# 2005 23 November 21st, 2008 05:47 PM
Accessing USB and Serial Port through Java taraprasad Pro JSP 3 April 10th, 2008 06:20 AM
.Net problem with emulated USb to Serial com port Turbovulc General .NET 0 April 5th, 2007 06:18 AM
communicating with usb port Lookie VB How-To 1 March 2nd, 2005 11:53 PM
Usb Port? dedex C# 1 November 9th, 2004 06:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.