[futurebasic] RE: [FB] Handles and pointers

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: Chris.Young@...
Date: Fri, 24 Sep 1999 09:22:14 -0500

On Thursday, September 23, 1999 8:32 PM, rbrown@... 
[SMTP:rbrown@...] wrote:
> 
>
> > 2)
> > How can i find out the size of the handle using just the pointer ? 
(with GETHANDLESIZE)
> 
> If "the pointer" is actually a pointer to the 4-byte handle, then you 
can get it like
> this:
> 
>   size& = GETHANDLESIZE([handlePtr&])
> 
> But if "the pointer" is a pointer to the data block--well, in that 
case I know of no way
> to get the handle's size.
> 

Wouldn't  the toolbox call GetPtrSize do this?
Size& = GETPTRSIZE(handlePtr&)


Chris Young