1) Why study? Master the basics, write test scripts, automate performance tests, understand code, locate problems (white box testing). How does the C language develop an interface program? First of all, to literacy:
1 What is called the interface program:
The final thing is to set the dots on the LCD, multiple points composed of lines, faces, graphs. The organic combination of these graphs is the interface. The window system you see now is a single control, which generally implements its own draw (). Further, combine the z coordinate to realize the superposition effect of the pattern.
2 Using the Interface Library implementation:
Why use the interface library? Because it would be tiring to draw a line with all of the underlying operations (in an embedded environment I've been doing it for a long time, writing directly, and of course having these functions abstract layer function interfaces).
3 Interface Library:
This is only a generic term and is not so appropriate. Windows Sdk,qt,gtk,java Interface Library (unfamiliar, swing?) All of these include the interface library, which is an advanced drawing function that has been abstracted. By calling these functions to implement the final operating system underlying (the hardware layer, drive layer), some graphics are displayed.
4 for example, a button:
Seemingly simple things, in fact, the button control needs to draw a good edge, and then use color and transparency to foil the three-dimensional effect. At the same time, when you click on the mouse, hover it also need to use another form (picture, color) to redraw themselves, so as to render the selected effect.
5 In fact, these are all you don't need to know.
All you need is a way to use these libraries instead of implementing them specifically. Speaking so much is to give you literacy, about the basic concept of the interface.
6 What you need:
Windows programming: Describes in detail how to invoke these libraries, controls in a Windows environment. Most of these libraries are to do the drawing function, the specific logic or to write their own, such as button events. Suggest to read carefully.
GTK Programming related books: GTK can be implemented across platforms, Qt can also, as long as it can be used, but GTK is C, QT is C + + encapsulated. Use recommended GTK.C language development of software interface how to design ah? There are several ways to develop the interface program directly in C + +:
1. Call the system API directly
This is a cumbersome and inefficient development, but through practice you will have a good grasp of the GUI program principles and techniques. Because the common 3rd type is also based on this, learn the API is conducive to more in-depth understanding of GUI program principles.
2. Draw directly using the drawing interface
This is the most troublesome and generally applicable to gaming, virtual reality and other professional areas, such as the use of OpenGL drawing interface to create 3D programs.
3, call other packaging good library
This is someone else to encapsulate the system API, give you a simple use of interfaces, such as MFC. It is a relatively good choice for C + +, now more popular Qt,xwidget GUI library, easy to use, rich in documentation, and cross-platform use. If you have not used MFC before, it is recommended that you do not learn MFC, cumbersome and not cross-platform.
Also, if using VS development,. NET some standard controls are enough to cope with the daily development, this is actually the most common now.
Learn the C language, how to use it in software testing?