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&Di splayLang=en)
But i can't get this to work
Does somebody has experience on this matter ?
Thanks already for a reply...
regards
Wim 3 1865
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&Di splayLang=en)
But i can't get this to work
Does somebody has experience on this matter ?
Thanks already for a reply...
regards
Wim
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.
"Wim Linders" <wl@merko.bewro te in
news:O3******** ******@TK2MSFTN GP06.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 the path to the file it works, but I need it to do it
over http the rest of the code is being run over a symbolic link and I need
different connections per website.
|
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 from
embedded devices). Currently, we are using a heavyweight, proprietary
log tool developed by another part of the company. This tool contains
all "standard" logging functionality, but we also need to insert
"debug" log points in the software of...
|
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 during
production. Usually, this only wraps code used to control quitting
the whole app versus just shutting a form, but it can also control
many other things.
However, as part of the build before delivering an update, I have to
remember to...
|
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 the code variable
that are supposed to be linked to the contained controls.
It runs fines when everything is contained in a single web form project.
What do I need to do to make it work from a class library?
|
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 SQL DATABASE, probably by the click of a
button.
Is this possible? & what is the BEST APPROACH for doing this? & also if any
links are there do tell those to me too coz I have no idea how to go about
doing it.
| |
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 button will verify the information that has been entered and
updates the data base if the data is correct. Update will throw an exception
if the data is not validate based on some given rules. I also have a custom
error handling page to show the...
|
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 thereofre want to keep the code secure.
If I use the 'Build/Publish Web Site' option, it asks me to tell it the
'Target location' which in this case is 'C:\Temp\PrecompiledWeb\Project1'
|
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 objective
in utilizing this new deployment method is to reduce the maintenance
overhead as well as making it easier for my users to setup and run the
application initially. I have VS 2002, Windows XP, Access XP(2000
format).
He is my problem....
|
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 found some documentation on MSDN (at:
http://msdn2.microsoft.com/en-us/library/ms676925.aspx) but it's all
Win32 stuff which doesn't help me as I started with .NET.
|
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 build
with these methods, will appear to encrypt and decrypt, but the
resulting decrypted file will be corrupted. I tried encrypting a .bmp
file and then decrypting, the resulting decrypted file under .NET 2.0
is garbage, the .NET 1.1 build works...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |