Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 30th, 2006, 08:13 AM
Authorized User
 
Join Date: Aug 2005
Location: , , .
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



Reply With Quote
  #2 (permalink)  
Old October 30th, 2006, 11:52 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
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
Reply With Quote
  #3 (permalink)  
Old October 31st, 2006, 03:07 AM
Authorized User
 
Join Date: Aug 2005
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old October 31st, 2006, 03:10 AM
Authorized User
 
Join Date: Aug 2005
Location: , , .
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
Default

helo = help *****

Reply With Quote
  #5 (permalink)  
Old October 31st, 2006, 11:21 AM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
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
Reply With Quote
  #6 (permalink)  
Old October 31st, 2006, 05:39 PM
Friend of Wrox
 
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
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.
Reply With Quote
  #7 (permalink)  
Old December 20th, 2006, 02:18 AM
Registered User
 
Join Date: Dec 2006
Location: Hyderabad, sindh, Pakistan.
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
Reply With Quote
  #8 (permalink)  
Old February 17th, 2009, 12: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
Reply With Quote
  #9 (permalink)  
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SMS Via USB Serial Port rodmcleay C# 2005 23 November 21st, 2008 04: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 10:53 PM
Usb Port? dedex C# 1 November 9th, 2004 05:14 AM



All times are GMT -4. The time now is 10:00 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.