473,775 Members | 2,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3027
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******* *************@n ews20.bellgloba l.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.c om> a écrit dans le message de
news:d9******** *************** ***@posting.goo gle.com...
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******* *************@n ews20.bellgloba l.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
7617
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 my serial port works on all machines as the data is correct in Hyperterminal (9600, N, 8,1)
3
5041
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 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 ?
3
5857
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
9067
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 component mscomm32.ocx (1.1.0) You need to install this component before you upgrade the project. Does anyone know how to install the mscomm component.
1
2534
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 i176.8005 <CR> i176.800555.44 <CR> o176.8005.222 <CR>
3
1714
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 box, B in the second text box and C in the third text box...Pls help me out.
0
1705
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 from HRESULT: 0x800A1F52. No one has been able to tell me why this isn't working. I know VB 2003 doesn't have serial control however I need to send this with the mscomm. It will break at the line : comm1.Output = Packet(i)
1
2097
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 to find out any information about 'mscomm' from msdn that came with my caopy of VS.NET and any information on wheher 'mscomm' can be used in VB.NET 2003. Please let me know how to communicate through a RS232C port in VB.NET 2003.
0
1870
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 fix the problem. As some background, I am trying to use VB to communicate with a Wi-Tilt bluetooth accelerometer, a sensor which sends data over a COM serial port. I have no problem talking to the device in Hyperterminal; it streams data into...
0
9454
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9916
tracyyun
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...
0
8939
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7464
isladogs
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...
0
6718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4017
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
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2853
bsmnconsultancy
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...

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.