Today is the first day of learning VC, although C syntax has been studying for a long time, can not write things with VC, can not stay in the exercise class, I should start learning to write something with VC. According to the habit of learning, I started learning VC, familiar with the programming environment by writing a small instance, after a few minutes of exploration, finally, I successfully established a dialog-based project, delete [OK] and [Cancel]. I am starting to do my own instance: I will do a function of opening the file, open the file, remember that Powerbuilder is implemented by calling a function, VC should be similar, find MSDN, ^ _ ^ see, it used to use this : Cfiledialog dlg (True, Null, Null, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "Text file (* .txt) | * .txt ||"); this and PowerBuilder is almost like, doing something to open text, Well! Yes, put the path, use the Text Control, Ha, here is called: Edit, Well, attribute is still a lot. . . . How to make the path displayed here? I don't know if I can assign this attribute? ? ? ^ _ ^ Looking for a long time, it seems that it is like Powerbuilder, right, right, online search, look at what clues, haha, found, originally like this: Construction of MEMBER VARIABLES belonging to this edit by class Name: m_path is good, then give him a value, use m_path = dlg.getpathname () should be, try the effect .......? ? Strange, how didn't reflect Ah, the dialog is coming out, but didn't display it in Edit? Strange, debugging, no problem, the m_path inside the memory does value, why didn't you show it? Don't I make a mistake, look at someone else's article .... I finally saw a related code segment, strangely, how this code is: updatedata (), what is this? ? .... Check MSDN, haha, understand, it turns out like this, plus going to see, ^ _ ^, ok, you can see, Well, what is it? Well, open this file, display the content in an edit, ^ _ ^, in the same way, very fast, it is done. Take a look at the clock, fainted, I am junk. It is so long to do so long, I have been 3:22, I spent more than 4 hours, ... It seems that my VC learning journey, It is not short, there is still something like tomorrow, hurry up, sleep, continue tomorrow ~!