Joke Collection Website - Cold jokes - I have finished learning c and have also learned c. Now I want to learn something like mfc but I don’t know what to learn.
I have finished learning c and have also learned c. Now I want to learn something like mfc but I don’t know what to learn.
"Windows Programming" is developed based on SDK. Simply speaking, it is similar to C language development. "In-depth explanation of MFC" is developed based on C. SDK uses API to write programs, while MFC encapsulates API into classes and becomes a C architecture.
Compared to MFC, SDK development may be a bit lower level. If you prefer c, then use mfc to write programs! However, it is still recommended to read a little bit of "Windows Programming", which will be helpful for you to understand the mechanism of Windows.
I was as clueless as you at the beginning, but after I wrote the first Windows program, the road thereafter became much smoother. I am an mfc programmer. Let me share my entry experience:
The book I read at the beginning was "Learn Visual C in 21 Days". I wrote a program step by step according to the book, and then repeated Write this program, but try not to read the book from the second time. Start by relying on memory. I can't remember which step you have reached. Then read the book again, and keep repeating this process until you can write this program without reading the book at all. This repeated process has one advantage: it can deepen your understanding of the sentence "everything in windows is a message".
Then I designed a small program myself. It was very simple. It was a dialog box with a button on it, an edit control, and a combo box control. The function was that there were several options in the combo box. I chose different ones. options, different contents are displayed in the edit control (actually it is the King of Fighters' move list, select different characters, and list how to press the skills), click the button to close the program. It's just such a program. I applied it based on the experience of repeated operations before. Just add whatever you need to add. As for what message to use, fortunately, Microsoft's function names are easy to understand. Plus I checked a little bit of information. This program is always *** After 3 months of writing, I finally succeeded!
After success, I looked at the code of the program and found that I could basically understand a lot of it, including the initial code after the project was created. Then I modify these codes myself, compile and see the results, modify again, and see the results again. In the end, I basically know what Windows programming is about. When I encounter problems when writing programs, it becomes easier to search on Baidu. At least I know the keywords to write. What.
The codes you wrote when you were learning C and C were all in DOS. When you first created the Windows program project, most people were dumbfounded when they saw the initial code. It’s okay. I’ll wait for you to design and make it yourself. It's much better after finishing the first windows program. In fact, you don’t need to read too many books to learn Windows programming. The two books "Windows Programming" and "In-depth Introduction to MFC" are good for improvement. It may be a bit indepth for novices. It is recommended to write programs first, because for novices, they cannot read the books. When I have a question, how can I ask a question because I simply don’t understand? It's different if you write the program first. For example, if I want to add a button to the interface, this is a problem. How do I add it? With this problem, I went to find a solution. After adding it, the problem came again. I clicked the button and found that the dialog box was closed. I didn't want to close it after clicking the button. What should I do? In fact, you will find that it is easier for people who don’t know anything to start from the program directly. Why? Because the process of writing a program is a systematic process, and the problems you encounter are very clear. For example, you don’t want to close the dialog box after clicking the button. If the problem is clear, isn’t it difficult to find the answer?
The above is my personal experience. It’s a bit long to write. I don’t know if you have the patience to read it. You can learn from it. When programming, you must have msdn in hand, which is full of introductions to windows functions. If you have a problem, first check msdn, then go online, and take your time. After taking this first step, everything will be much better. Don't be afraid to spend time. It is possible to write a small program in half a year when you first start.
What about data structures? It’s awesome if you can finish reading the school textbooks! The data structure textbook from Tsinghua University is okay!
If you have any questions, you can communicate with me and we can make progress together!
- Related articles
- Chongyang dialect in Chongyang dialect is really funny.
- Gan Long said, I am 45 years old and I am a horse. Liu Yong said that we are the same age and I am a donkey. What did Liu Yong say to make Ganlong happy?
- Brief introduction of Hefei story radio program
- How to write the advertisement for renting a house?
- How to bind the bank card?
- Look at writing handmade cards and greeting cards in the second grade.
- What are some interesting things about Hong Kong actor Jackie Chan?
- Why do Guo Degang's apprentices often betray their master, but Zhao Benshan's apprentices do not?
- Funny riddles, answers, some jokes about children's problems, the funnier the better, and stories.
- What do you mean by the crumbs in the V-ring?