http://vchome.topcool.net/
Vchome -> Webmaster
How to learn VC? The author Zhang Zhenyu 2001/03/08 is now, more and more people are beginning to learn VC, if they can be proficient in VC, just like Jing Jiuyin really, you can invinciate in the world. I think a lot of VC enthusiasts have this psychology that pursues martial arts to high. I just held this kind of psychology to learn VC. I have been in the past three years. I have experienced countless confusion and hardship ..... but I didn't give up, I have already had a certain skill :) The experience in my cultivation is shared with everyone, and improves the practice together! First of all, we must do what VC can do. Many people just heard that VC is the best development language, they will learn, just like everyone heard that the evil swords are powerful, they are all blind. In fact, the language does not have a good disorder. Before I use C, I have a straight Basic is the best language. Programming in the Windows platform, VB and Delphi can meet most applications, and the speed will not be very slow. Using VC is mainly used to develop system software and large tool software and development games. The popular operating system is now mainly Windows Series and UNIX Series. These operating systems are complex multitasking systems. When designing an operating system, it provides a lot of application programming interface (API, usually a function of C language), and the programmer uses C language to call these APIs to develop the system The next application. This is not the same as the programming interface of the DOS era, then the Hou's function library is provided by the development environment (such as Turbo C), which does not have good encapsulation and equipment independence. Whenever the new version of Windows operating system is issued, a corresponding PlantForm SDK (software development package) is provided, and developers can compile C programs with SDK. When there is no VC and VB, the Windows program is compiled with SDK. What is the relationship with these messy things? In fact, the core of the VC is MFC, MFC is a C class library, just like the C language function library in the structured program design era, give programmers, simplifying the design. The MFC is directly to the C class package API function directly! This achieves both object-oriented programming ideas, and directly uses Windows's original programming interface, the efficiency of code is the highest! Of course, many people do not adapt to C programming methods, they still use the C language to write WinMain () and window processes, VC also provides them with great convenience, because VC can manage resources and code! Understand the above relationship, the steps to learn VC should be clear: first to learn C language (if you still don't want)! this is very important. If the C language does not understand, everything goes out. Understand the C language, you can study the working principle of the Windows system and the working principle of the Windows application. This is also very important. VC can only be used to develop applications under Windows Series operating systems. If you don't understand the working principle of the program under Windows, you will be more blind. It is mainly to experience Windows multitasking and message drive mechanism. Then you can use the API to program. This process is more painful, because everything has become more complicated, you will encounter a lot of new methods and concepts! For example, message queues, messages, window processes, GDI, device contexts, handles, threads, messages, plot objects ... When you can skilled the Windows program, you can try objects Method.