473,378 Members | 1,146 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,378 software developers and data experts.

How to use the Serial port in C# without using win32api or mscomm.ocx

Is there a c# solution for this ?
It may work like the MSCOMM control.
Applications that use the MSCOMM ocx should distribute this component too,
so i want to avoid this.
How can serial port access with overlapped io be done in c# ?
Or should i fall back to the win32 api (createfile) with overlapped io ,and
create a wrapper in managed code ?

Any suggestions ?


Nov 15 '05 #1
3 5015

"Fergus Cooney" <wo****@tesco.net> wrote in message
news:O6**************@TK2MSFTNGP12.phx.gbl...
Hi Sagaert,

I've just started a book ".NET Framework Solutions - In Search of the
Lost Win32 Api" which has a whole section about Serial Port access - because it's missing from .NET.

Good luck,
Fergus


Who's publishing it, and when will it be available?
Nov 15 '05 #2
Hi Michael,

SYBEX: 2002
Author: John Paul Mueller
ISBN: 0-7821-4134-X

Regards,
Fergus


Nov 15 '05 #3
Take a look at:

http://msdn.microsoft.com/msdnmag/is...m/default.aspx

It shows a complete serial port implementation in C# usin P/Invoke.

Boaz Ben.Porat
DataPharm a/s
Nov 15 '05 #4

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

Similar topics

0
by: Helge Jensen | last post by:
Having posted in microsoft.public.dotnet.framework.sdk and microsoft.public.dotnet.framework.wmi without receiving any response, I posthere on the off-chance that someone who isn't following those...
7
by: Kevin | last post by:
Hi all I am having a problem reading from a serial port, first of all I have now resorted to using the MSComm ActiveX control on my Windows Forms to provide me with the interface to my serial...
3
by: dalewz | last post by:
Hi, I am thinking to use C# and MSCOMM in MS VS.net to support GUI and serial port communication. Is this possible? I know that VB and C++ can. Thanks. -Dale
3
by: Swatcat | last post by:
I have a device that send to my computer information by serial com port. The comunication parameters are: PORT: COM 1 Bits per second: 9600 Data bits: 8 Parity: None (0) Stop bits:1 How...
16
by: halukg | last post by:
I am trying to send a 6 byte char array from the serial port in new C# 2005 Express: com.Write(new string(new char { (char)34, (char)14, (char)192, (char)51, (char)0, (char)0 }, 0, 6)); I am...
3
by: Amjad | last post by:
Hi, I'm working on an application that sends and receives data over the serial port using the MSComm control. How do I empty the buffer of the received data and how do I set its size? Are there...
9
by: Carl Gilbert | last post by:
Hi I'm trying to open a vb6 project in vb.net which uses the mscomm component. When running the vb upgrade wizard in vb.net, an error is raised: Upgrade failed, unable to load reerenced...
0
by: pandi | last post by:
Hi, I am using a check scanner.It has functions which gives output like image ,checknumber. i am using serial port to get this output in my coding. My problem is i am not able to read the display...
2
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.