Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

richTextBox C++

$
0
0

I am trying to send a Hex message to a serial port device and display the response that is a word longer (example: 0x52, 0x0A, 0x01, 0x00, 0x01) in a richTextBox in Hex format, how to do that? I have confirmed the message is sent. Thank you.

private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e){

                Sleep (1000);
                auto data = gcnew array<System::Byte> {0x52, 0x0A, 0x01, 0x00};
                serialPort1->Write(data, 0, data->Length);

                }


Viewing all articles
Browse latest Browse all 15302

Trending Articles