Home > Software engineering >  MFC how to realize the text which data is inserted into the corresponding edit box, the first line (
MFC how to realize the text which data is inserted into the corresponding edit box, the first line (

Time:09-16


How do I implement the data and variables corresponding to sincerely help you bosses

CodePudding user response:

In fact is to make the edit box shows the corresponding data later used to calculate the novice don't know what kind of code to implement

CodePudding user response:

https://www.baidu.com/s? Wd=CDialog + UpdateData& Ie=utf-8

CodePudding user response:

UpdateData(TRUE); Control to the variable
The UpdateData (FALSE); Variables to control

CodePudding user response:

According to the fixed format input, each read a line of string segmentation, again

CodePudding user response:

Cstrings szLine;
//open the file
CStdioFile file;
Ts. TXT file. Open (" ", CFile: : modeRead);//read TXT text
//read line by line string
While (file. ReadString (szLine))
{
//handle the szline line dividing the assigned to variables,
//this is read every line, you can also put each line are preserved outside recycling processing
}
The UpdateData (FALSE); Variables to control

CodePudding user response:

Just back to a similar
https://bbs.csdn.net/topics/392065749

CodePudding user response:

CStdioFile: : ReadString () keep to the cstrings, using cstrings: : Tokenize () in the TEXT (" | ") as the delimiter split string,
  • Related