In windows #define void* HANDLE and ID is the short for Identifier(身份). In fact HANDLE don't need to exist if you just program with VC++.You can always use pointer. But Microsoft doesn't think so, so you must use HANDLE some time. Generally, you use this HANDLE to obtain the pointer of the object, because HANDLE is the physical address of a object. ID is just the identifier of a resource such as a bitmap or a dialog template, the purpose it to tell the VC++ compiler that you are using this bitmap or dialog.
/*------------------------------------------------------------------*/
VC驿站 - WwW.CcTry.CoM
C、C++、VC++ 编程学习 免费课程 精品电子书 精品源码 下载 期待您的加入!
/*------------------------------------------------------------------*/
#define void* HANDLE and ID is the short for Identifier(身份).
In fact HANDLE don't need to exist if you just program with VC++.You can always use pointer. But Microsoft doesn't think so, so you must use HANDLE some time. Generally, you use this HANDLE to obtain the pointer of the object, because HANDLE is the physical address of a object. ID is just the identifier of a resource such as a bitmap or a dialog template, the purpose it to tell the VC++ compiler that you are using this bitmap or dialog.