Serial port and C++ .NET

  • Thread starter Thread starter Jeff
  • Start date Start date
J

Jeff

Hello,

Someone can help me about serial port with C++ .NET (Windows forms
application). Like setting port, opening it, transmiting, receiving,
closing, etc.

Thanks very much (for me and my students)
 
Hello,
Someone can help me about serial port with C++ .NET (Windows forms
application). Like setting port, opening it, transmiting, receiving,
closing, etc.

Thanks very much (for me and my students)

Hi,

you can open a com port with CreateFile (filename "COM1:") and operate with
normal read and write. I think
it's still the same in .NET.

Bye, Holger.
 
Or just download ACE (Adaptive Communications Environment)
for free and get a lot more power. :-)
-----Original Message-----

Hi,

you can open a com port with CreateFile
(filename "COM1:") and operate with
 
Unfortunately we do not provide any mechanism in the framework to easily
accomplish serialport communication. This is a highly requested feautre and
we are seriously considering it for the next release.

However there is some documentation that might help you. The following has
a few links under the Accessing COM ports from C#/VB.Net that might be
helpfull:
http://www.gotdotnet.com/team/csharp/code/default.aspx

This has some samples implementations that you could use:
http://www.gotdotnet.com/community/usersamples/Default.aspx?query=Serial

I have personally used the following sample and it provided all of the
functionality that I needed:

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=b06e3
0f9-1301-4cc6-ac14-dfe325097c69

Thanks,

Ryan Byington [MS]

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
--------------------
 
Back
Top