Reading from a Serial Port with C# ???
My Serial Port FAQ:
.NET 1.0 has no support for legacy ports (COM/LPT).
There are plans to add support for serial ports in a future version:
http://www.*-*-*.com/ %23vQLn9bCHA.392%40tkmsftngp09
"this sample is very similar to what we will be adding" :
http://www.*-*-*.com/
(note, project built with beta vs.net, just get the .cs)
With 1.0 you have to use PInvoke or Interop :
First understand the Win32 API as described here (C++):
http://www.*-*-*.com/
New MSDN article for .NET (mostly C#):
http://www.*-*-*.com/
PInvoke samples for C#:
http://www.*-*-*.com/
http://www.*-*-*.com/
http://www.*-*-*.com/
or for VB.NET:
http://www.*-*-*.com/
http://www.*-*-*.com/
http://www.*-*-*.com/
or you can use the "Managed Extensions for C++" and write wrappers.
http://www.*-*-*.com/
http://www.*-*-*.com/
on your VS.NET path:
...\VC7\managedextensionsspec.doc
...\VC7\migration_guide.doc
MC++ Sample:
http://www.*-*-*.com/
or reusing the VB6 MSComm ActiveX is easy, but it has some 'problems' (license)
http://www.*-*-*.com/
http://www.*-*-*.com/
commercial:
http://www.*-*-*.com/
for Interop, use newsgroup:
microsoft.public.dotnet.framework.interop
--
Thomas Scheidegger - MVP .NET - 'NETMaster'
http://www.*-*-*.com/ ://dnetmaster.net/