My path to getting started with Visual C ++ (below)

Source: Internet
Author: User

Lucky time to win SamSung mobile phone Registration
"90 days" conquer women! The temptation of the sexy women's shoes

3. Internal and external factors: Do you have "three hearts and two minds" and "Master friends?

ah, I'm not kidding. "Three Hearts" refer to determination, confidence, and patience. My determination comes from motivation. to be funny, I initially had a very simple motivation. I had a friend from college in the computer department. I always thought I was smarter than him (my days ~~~~), He knows VC and I won't. I just want to surpass him. Now I have graduated for two years, and my initial motivation is no longer there, but learning Vc has become my wish-the most important thing is that I want to write my own input method, which can only be implemented using Visual C ++, so I will have the determination to learn VISUAL C ++ well. As for confidence, two failures are completely caused by insufficient confidence. The confidence that contributed to this success is still legendary: I went to Beijing to play, on the train home, the teacher surnamed Zhao bit came to me and chatted with me when he saw me with a seal of MCP, I learned that he is a Program member with more than 10 years of VC development experience. During the chat, Mr. Zhao gave me great encouragement and support-I asked him if he could get started with VC within half a year like me. He told me that he could, so I strengthened my confidence. Now it's exactly four months, if Mr. Zhao has the opportunity to see this Article -I am here to thank you! (Fun: Get off the bus. I broke up with my girlfriend two hours later. It's a shame, comrades! In the following days, I have been with VC ......) PATIENCE: If you have already seen this, it means you are very patient (you can see it is not covered yet). Patience is related to your personal style. Most of the impatient people are lazy people, if a lazy cannot do anything, he cannot study VC, read books, ask questions, and translate english ...... Or give up if there are some setbacks. I don't expect to learn VC well. I don't know what other people are doing. I'm not frustrated. In fact, it's just a little bit out of getting started twice. I gave up ...... Learn VC more frustrated, learn VC must be persistent, gogogogo!

"Two meanings" means that you need to feel "meaning" in learning VC, and "meaning" in learning VC ". Interesting, that is to say, you like to write programs. The source power of "Three Hearts" comes from your love for programming. People who do not like programming can learn VB well, but cannot learn VC well. It makes sense, that is, you have to give yourself a reason: What you cannot give yourself a confession is not long-lasting. As mentioned above, I wrote my own input method to free Chinese people from their hands. This reason is pure and lofty. Another reason is to learn VC to train myself, become a real programmer. You can have your own reasons, such as improving your salary or getting certified cloud! This is like "reward" for yourself. If you don't pay, you can't do anything for a long time simply by doing things with passion.

My small success is due to the fact that I have a "master friend", Yang W, who is a VC master. You may be curious to ask: What does he teach you to write? Is it MFC, ATL, or com? He never taught me to write a line.CodeBut every time he helped me, he was very precious. when I didn't know where to find the class library resources, he told me: msdn; when I don't know where to find the class member function, he told me that there is a class member link in the lower left corner of the page. When I asked him if he could finish XXXX, he said: don't waste your effort ...... With his help, I took a lot of detours, which is also valuable to my friends. Here, I would like to say: Thank you!

Not every friend who studies Vc has such good luck. Don't worry if you don't have such a friend around you. My good friend is often found in csdn's altar, understand? But remind beginners like me: Be sure to be a person who will ask questions! How can we be a problematic person? To sum up, the goal is clear, concise, and the core code is polite and modest.

Iv. VC entry notes

I write things in the East and West, and my thoughts are messy. There are a lot of other things that you don't know where to write, but you can't do it anymore. You just have to call it "Essay.

...... To learn VC programming, we must first erect a "system/concept ". For VB, C #, and Delphi, you only need to consider the program itself when writing a program. In other words, you do not need to consider how messages are mapped and transmitted. And VC write programs need to take these things into account more or less. For example, I used to write a program using VB. It was like building a pavilion on a hill, a mountain, and a pavilion. I just made a pavilion, but I used VC to write a program, or this pavilion, you should realize that the pavilion is part of the mountain, not an isolated building. "Pavilion" is a program, "Mountain" is a Windows system, and the pavilion foundation is the "interface" provided by the mountain for the building, that is, the API ......

...... VC is relatively difficult to get started with VB. At the beginning, it is not like VB to give a form from the ground up, and Appwizard should be divided into several steps. There are a lot of cloud deployment options in each step, it is no longer necessary to generate a program. What should we do? In a word, start with the dialog box program, because it is the simplest, generates the least classes, and is relatively the most "like" in VB programming. In the dialog box program, you can fully add class and member variables or member functions ....... However, I have never figured it out. From easy to difficult is the dialog box program, single-document program, and multi-document program. Why does Microsoft not sort in this order in Appwizard? Do it right with our beginners! (Save the blame )......

...... It's not capitalized again ...... It's a semicolon ...... There is another equal sign ...... Remind programmers who transferred VB not to be so unremembered!

...... I would like to remind the ddmm who have learned VB or VB. NET/C #. Although the MFC class is object-oriented, it does not have the concept of "attribute! Don't expect me. textbox1.text = "Hello world! "In this syntax, C/C ++ is a function-type language. classes have encapsulated" attributes "into member variables, which are private member variables that you cannot see, only functions can be used to change -- this-> mytextbox. setwindowtext ("Hello world! ");......

...... Dizzy, the original Win32 program and the MFC program are not the same thing (look, this is a bad book to me, so I always thought that the Win32 program is the MFC program, it wasn't until I read "let's get down to MFC )......

...... Good VC or good VB? (Please, don't ask this boring question again )......

...... VC can do the bottom layer, but not the bottom layer; VC is indeed powerful, but not omnipotent-it is not right to cut watermelon with a surgical knife or operate with a kitchen knife ......

...... VC Experts use NotePad to write programs: laugh at you ......

...... VC programmers are better than VB programmers: Haha, Chairman Mao said that weapons are not the deciding factor for the victory of the war ......

...... In the rapid development tool (RAD), controls and background code are bundled together, while the "control class" of MFC is different, and its "resource" (or skin) they are separated from "Classes" (or "Classes"). They should be "glued" through classwizard ......

...... If C ++ is a programming language, the C ++ language in Visual C ++ is better than the "Windows language"-Visual C ++ is programming windows, the macros or Windows Data Types and Windows structures are countless. Be prepared! ......

...... My day, so long functions or structures must be written with a letter or a letter! Click Ctrl + J to see what happened? I am surprised that I have hardly seen any books reminding our beginners to do this. This scared a lot of beginners! (At least I was scared away ). We need to familiarize ourselves with ide. good gifts from Microsoft cannot be wasted ......

...... After many books have added a new box class, they all wrote that they should manually add references to this new Class header file in the Main Dialog Box class. Why? Use the Add member variable method to add an instance of this new dialog box class. The header file is automatically referenced. One sentence: Use the Class Wizard as much as possible, and do not write anything without handwriting ......

V. Virtual bool longwaytogo (void)

{
// For the first time I wrote an article, the bug is inevitable. Let's debug it together.
// Because it is an entry-level article, if there is an error, it is likely to affect the learning of beginners. If there is a mistake, you must correct it!
// Hope you can give me more valuable comments and help me move forward. Thank you!
// This is a virtual function, which will be available later. I still have a long way to go ......
Return true;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.