473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

using com-port in VB.net

Hi,

I have to capture data from the com-port that comes from a barcode-scanner
with rs232-cable.
What is the best way to do it in .net?

In my first attempt i used the msComm-ocx (the one that came with vb6). This
worked on my computer, but after deploy on the computer the programm is
supposed to run on, i encountered errors...

In a second attempt i wanted to use the rs232-class that is provided in a
microsoft-code sample:
(http://www.microsoft.com/downloads/d...18ca-e4f1-4846
-912c-b4ed37a1578b&DisplayLang=en)
But i can't get this to work

Does somebody has experience on this matter ?
Thanks already for a reply...

regards
Wim
Aug 31 '06 #1
3 1849
Dick Grier has a dll available for download on his website
www.hardandsoftware.com

Download the DesktopSerialIO dll and use it to communicate with RS232. I
have downloaded it and it works great in VB2003.

John

"Wim Linders" wrote:
Hi,

I have to capture data from the com-port that comes from a barcode-scanner
with rs232-cable.
What is the best way to do it in .net?

In my first attempt i used the msComm-ocx (the one that came with vb6). This
worked on my computer, but after deploy on the computer the programm is
supposed to run on, i encountered errors...

In a second attempt i wanted to use the rs232-class that is provided in a
microsoft-code sample:
(http://www.microsoft.com/downloads/d...18ca-e4f1-4846
-912c-b4ed37a1578b&DisplayLang=en)
But i can't get this to work

Does somebody has experience on this matter ?
Thanks already for a reply...

regards
Wim
Aug 31 '06 #2
Hi,

What version of .NET? You can download DesktopSerialIO and an accompanying
example from my homepage for VS2003, or you can download the VS2005 example
that uses the built-in System.IO.Ports serial class.

BTW, I have some barcode reader examples in my book (see below).

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.
Aug 31 '06 #3
"Wim Linders" <wl@merko.bewrote in
news:O3**************@TK2MSFTNGP06.phx.gbl:
I have to capture data from the com-port that comes from a
barcode-scanner with rs232-cable.
What is the best way to do it in .net?
..NET 2.0 has a COM port class you can use.

Or you could go with a 3rd party class that maybe easier to use.
Aug 31 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: * | last post by:
i am using include("http://".$_SERVER."/db.php"); to include a file. It isnt returning anything or connecting to the database (which is what it is supposed to be doing). any ideas? if i put in...
8
by: Joakim Persson | last post by:
Hello all. I am involved in a project where we have a desire to improve our software testing tools, and I'm in charge of looking for solutions regarding the logging of our software (originating...
13
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
14
by: pmud | last post by:
Hi, I need to use an Excel Sheet in ASP.NET application so that the users can enter (copy, paste ) large number of rows in this Excel Sheet. Also, Whatever the USER ENETRS needs to go to the...
15
by: Nathan | last post by:
I have an aspx page with a data grid, some textboxes, and an update button. This page also has one html input element with type=file (not inside the data grid and runat=server). The update...
8
by: Mike Owen | last post by:
Hi, I am trying to pre-compile a project prior using ASP.Net 2.0, VS 2005, to putting it onto a live server. The reason for doing this is that other people have access to the server, and I...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
5
by: ssg31415926 | last post by:
Does anyone have any experience using SCPs (serviceConnectionPoints) in C#? Specifically, I'm trying to use an SCP to locate a service on a server, once the service has created the SCP. I've...
3
by: JDeats | last post by:
I have some .NET 1.1 code that utilizes this technique for encrypting and decrypting a file. http://support.microsoft.com/kb/307010 In .NET 2.0 this approach is not fully supported (a .NET 2.0...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.