This is a discussion on What is a handle exactly? within the C Programming forums, part of the General Programming Boards category; thanks...
It generally means an "indirect access" pointer, but sometimes it's direct. For instance, in Windows, we get a handle to a bitmap with CreateCompatibleBitmap(). But the pointer it returns does not give you direct access to the bitmap bits. Thus, this is a "true" handle. On the other hand, you could assign a pointer to an int, but that would be a "direct" handle since you can physically manipulate the value at the other end of it...
24bbs.cppCode:if( numeric_limits< byte >::digits != bits_per_byte ) error( "program requires bits_per_byte-bit bytes" );
thank you =)
yes, summed up, it's just a way to reference an object (usually a data structure in memory).