The difference between a handle and a control ID

Source: Internet
Author: User
Tags unique id

Your family is now like a program (form is also part of the program, the actual forms, controls are dynamically built by the command statement, just save yourself to write code, AutoIt forms and controls as if they can only be built with code, and VB is not the same), the control ID is like your name, Generally a family (the program) among the many Members (control) is not the same name, each person in their own home (the program) is unique, and when your family (program code) need to find you, called your name when you call your name (control ID).

But countless families across the country may have duplicate names, so the government (System) regardless of your name (control ID) is what, directly assigned to everyone (control) a ID number (handle), Public Security Bureau (other program) to find You (a control) when you use your ID number (handle) to ensure that the national (memory) range will not mistake you.

After each family composition (running a new program), the Baby (build new control) will get a national (memory) unique ID number (handle) to ensure the uniqueness of the domestic (memory). When a family member dies (the control is destroyed), the identity card number (handle) is also invalidated (the system is retracted and assigned to the newly generated control).

What is the "handle" (handle), handle's intention is the handle, the meaning of the handle. You are dealing with the operating system. For example, for example, if you have been admitted to a university, the school (operating system) will give you a student ID number. Note that this number is specified by the school and you cannot choose. With this number (student ID, assuming a multi-use) to enjoy the services provided by the school: If you can go to the library to borrow books, to eat in the cafeteria, classes and so on. But you can't buy beer in the cafeteria because the school doesn't allow this kind of service. And in the computer system provides the service is the API call, you have the handle, you can confidently to the system to call the API service. and pointers to the majority of power, with a pointer you can go everywhere to drink, fight, school (operating system) is not allowed, so the difference between the handle and the pointer is that the handle can only invoke the service provided by the system. While the handle is a number that can be distinguished from each other, but with our ordinary ID number is also different, the ordinary ID number can be defined by the programmer, and the handle is not, it is the object generated by the system specified, is to distinguish the system in the existence of the various objects, the handle is not given by the programmer.

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.