Home > Software engineering >  MFC serial communication line how to document is copied to the edit box
MFC serial communication line how to document is copied to the edit box

Time:09-23


This is their beginners tutorial on the net, want to add something, the data line in the document to send a box, then one line timing to send, you give some advice, great god have seen a lot of posts, or have a garbled, or incorrect.

CodePudding user response:

Baidu search relevant keywords,
For computer no noise, only the binary bytes; To the human brain is gibberish, GBK: 0 xb0 0 xa1, Unicode - 16 LE: 0 x4a 0 x55, Unicode - 16 BE: 0 x55 0 x4a, utf-8 8-0 x95 xE5 0 0 x8a

CodePudding user response:

You said the document is the file on the hard disk?
It's not a matter of copy, is a question of reading
Can be read by CFile file and then send

CodePudding user response:

Do you know if it does not know how to display the data to the control, basic it is XXX for MFC - & gt; SetWindowText (" ");
Source of the data depends on your own control

CodePudding user response:

With CEdit, receiving data with SetSel (1, 1) is set, then a row row shows

CodePudding user response:

To prevent characters were divided into 2 rows.
  • Related