Since there is no Serial Port support in .NET 1.1, what is the workaround for working with serial ports?

StackOverflow https://stackoverflow.com/questions/14736068

Domanda

According to two sources (http://bytes.com/topic/c-sharp/answers/224314-serial-communication-dll and http://www.innovatic.dk/knowledg/SerialCOM/SerialCOM.htm), .NET 1.1 has no Serial Port support.

The first URL says, ".NET Framework 2.0 also added the following namespaces: System.IO.Ports ->Supply the SerialPort class to implement serial port operation."

The second: ".Net 1.1 RTM (Release To Manufactoring) = No serial port support!"

So, since the project I'm enhancing is in .NET 1.1 on Visual Studio 2003 (in XP Mode on Windows 7), what recourse do I have to connect via the serial port to a belt printer (Zebra QL220) and send it some CPCL (print instructions)?

UPDATE

It seems OpenNETCF may be the way to go, but I'm also not sure just how to use that...

È stato utile?

Soluzione

The answer is to use the OpenNETCF classes, which have a SerialPort class you can use.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top