You may have seen the English full name of the API in many books (application programming
Interface), the WIN32 API is the application programming interface of the MicrosoftWindows 32-bit platform
。 The understanding of this definition needs to be traced back to the development history of the operating system, when Windows operates
When the system began to dominate, developing applications under the Windows platform became People's
Need. In the early days of the development of Windows programming, Windows programmers were able to use
Programming tools are only API functions that Windows provides to applications and operating systems.
Interface, they are like "block blocks", can build a variety of interface rich, functional flexible
Application. So you can think of the API function as the cornerstone of building the entire Windows framework, under which
Windows is the core of the OS, and it's all gorgeous Windows apps
Order.
However, at that time, the development of Windows programs is more complex work, the programmer must memorize a large
Heap commonly used API functions, but also have a deep understanding of the Windows operating system. However, with
With the continuous development of software technology, there are many excellent visual programming on the Windows platform.
Environment, programmers can use "WYSIWYG" programming to develop a sophisticated user interface
and powerful applications.
These excellent visual programming environments are simple and user friendly (such as VB, VC,
Delphi, etc.), which provides a large number of class libraries and various controls in these tools, which replace the API
In fact, these class libraries and controls are all built on WIN32 API functions.
, is a collection of encapsulated API functions. They combine common API functions into a
control or class library, and gives it a convenient way to use it, so it greatly accelerates windows
Process developed with a program. With these controls and class libraries, programmers can focus on
The overall function of the program is designed without having to focus too much on technical details.
In fact, if we are to develop more flexible, more practical, more efficient applications, we must
To involve direct use of API functions, although class libraries and controls make application development much simpler,
But they only provide the general functionality of Windows, and for more complex and special functions, make
Using class libraries and controls is very difficult to implement, and you need to implement them using API functions.
This is also the use of API functions, so we do not have to deal with the API function to study every
The use of functions is also unrealistic (there are thousands of API functions that can be used). Just as a certain person
Prawn said: API do not learn, when needed to check the API help is enough.
Familiarity with understanding what is the API under the Windows platform