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

Could C# and MSCOMM work together to support serial port commnication?

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
Nov 16 '05 #1
3 3011
dalewz wrote:
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

Hi Dale,

Yes this is possible, I'm currently using this configuration in a project.

This link will be helpfull for you:

http://www.devhood.com/tutorials/tut...utorial_id=320

Jamie
Nov 16 '05 #2
Jamie,

Thanks a lot. The link is very useful.

By the way, have you used Ethernet driver with C#? I heard that this
is doable by opening a socket, but I want to know more.

Best, -Dale

jamie <no@spam.com> wrote in message news:<VN********************@news20.bellglobal.com >...
dalewz wrote:
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

Hi Dale,

Yes this is possible, I'm currently using this configuration in a project.

This link will be helpfull for you:

http://www.devhood.com/tutorials/tut...utorial_id=320

Jamie

Nov 16 '05 #3
another link:
http://msdn.microsoft.com/msdnmag/is...m/default.aspx
this article provides a library written in C# to control COMM port without
using MSCOMM but rather by P/Invoking Win32 API. It can be useful if you
want to get rid of old OCX tech...

Olivier DALET
-----------------

"dalewz" <da****@yahoo.com> a écrit dans le message de
news:d9**************************@posting.google.c om...
Jamie,

Thanks a lot. The link is very useful.

By the way, have you used Ethernet driver with C#? I heard that this
is doable by opening a socket, but I want to know more.

Best, -Dale

jamie <no@spam.com> wrote in message

news:<VN********************@news20.bellglobal.com >...
dalewz wrote:
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

Hi Dale,

Yes this is possible, I'm currently using this configuration in a project.
This link will be helpfull for you:

http://www.devhood.com/tutorials/tut...utorial_id=320

Jamie

Nov 16 '05 #4

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

Similar topics

0
by: Joe G \(Home\) | last post by:
Hi All, I have 16 bytes 0x02, then "0F0270632E30" then <CR> then <LF> then 0x03 that are received by the serial port of my PCs. The only variation is the string ASCII hex values I know...
3
by: Sagaert Johan | last post by:
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...
3
by: Gurinder | last post by:
Hi, Do you know how to use serial port in VisualBasic.Net and what is the object name to use. Thanks, Gurinder
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...
1
by: Pete | last post by:
Hello, Have just started using VB.Net and have been trying to work on some updates to a very old piece of code. Currently we send messages via the serial port in the following formate ...
3
by: cpraveen10 | last post by:
Hi... I am trying to use MSComm for capturing serial data. The serial data is 1A2B3C1A2B3C1A2B3C1A2B3C...... so on which is coming from serial port. From that i have to capture A in the first text...
0
by: cmdolcet69 | last post by:
I get the following error message when I output to the mscomm: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in COM.exe Additional information: Exception...
1
by: thomasc1020 | last post by:
Hi, I am trying to write a code which reads in the iput characters from a RS232C port(COM port). I found out that 'mscomm' can be used to solve this problem on VB.NET 2005. However, I was unable...
0
by: daveman | last post by:
Hello, I'm encountering a "Blue Screen of Death" when I try to send data to a bluetooth sensor via a serial port, using the MSCOMM ActiveX object. I was wondering if anyone has any ideas how to...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
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...

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.