![]() ![]() _serialPort->BaudRate = SetPortBaudRate(_serialPort->BaudRate) _serialPort->PortName = SetPortName(_serialPort->PortName) Allow the user to set the appropriate properties. Create a new SerialPort object with default settings. Thread^ readThread = gcnew Thread(gcnew ThreadStart(PortChat::Read)) StringComparer^ stringComparer = StringComparer::OrdinalIgnoreCase ![]() ![]() Both computers must be executing the program to achieve full functionality of this example. In this example, the users are prompted for the port settings and a username before chatting. The following code example demonstrates the use of the SerialPort class to allow two users to chat from two separate computers connected by a null modem cable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |