Home > Software engineering >  Bosses for help ahhh!!!!!!
Bosses for help ahhh!!!!!!

Time:11-22

I want to 13 in the MFC serial communication program apart char type number, the first eight synthesis of a large, after five synthesis of a large, separated with a space between the data and display in the edit edit box of MFC,
The worry in today, thank you bosses

CodePudding user response:

13 char?
Is the string!

CodePudding user response:

13 eight digits, the first eight an eight digit synthesis, after 5 an eight digit synthesis, separated by a space in the middle

CodePudding user response:

reference 1st floor schlafenhamster response:
13 char?
Is the string

13 eight digits, the first eight an eight digit synthesis, after 5 an eight digit synthesis, separated by a space in the middle

CodePudding user response:

Cstrings mStr;
//receiving data appended to mStr

MStr. Insert (8, _T (" "));//insert Spaces among
SetDlgItemText (IDC_EDIT1, mStr);//show to edit box

CodePudding user response:

"13 eight digits
"1. Is' 0 '(0 x30) to' F ',
2 or 0 (0 x00) to F

CodePudding user response:

reference 4 floor zgl7903 response:
cstrings mStr;
//receiving data appended to mStr

MStr. Insert (8, _T (" "));//insert Spaces among
SetDlgItemText (IDC_EDIT1, mStr);//show to edit box

Can I give it a try, line, it seems that you this lack of eight before the synthesis of a number of operations

CodePudding user response:

reference 5 floor schlafenhamster reply:
"13 eight digits
"1. Is' 0 '(0 x30) to' F ',
2 or 0 (0 x00) to F

Is zero, not '0', thank you

CodePudding user response:

Floating point number 1? An integer?
Two big end? The small end?

CodePudding user response:

Long data1, data2;
Cstrings strtemp, STR=_T (" 1234567812345 ");


//left 8
Strtemp=STR. Left (8);
Data1=_ttoi (strtemp GetBuffer ()); Strtemp. ReleaseBuffer ();

//right 5
Strtemp=STR. Right (5);
Data2=_ttoi (strtemp GetBuffer ()); Strtemp. ReleaseBuffer ();

CodePudding user response:

Thank you, have been solved!
  • Related