> >What's the difference between VoidHand and Handle?
>
> At PalmSource next week I'll be able to give you a complete answer. Right
> now there's not really a difference; they can be used interchangeably in
> every situation that I can think of.
a totally useless answer to many people - but here is an answer
that might help those people that dont have the time to attend
PalmSource 99
within the "Common.h" header file you shall see this:
--
typedef void* VoidPtr;
typedef VoidPtr* VoidHand;
// generic pointer types used by memory manager
typedef char* Ptr;
typedef Ptr* Handle;
--
so in otherwords VoidHand is a (void **) and Handle is a (char **).
best case to understand this? a Handle is used to manipulate char
objects (memory unit cells - same size) and a VoidHand is used to
manipulate another other types of objects (void = unknown).
you interpretation of void depends on your "casting". they can be
used interchangably because you can always cast a VoidHand to a
Handle. they are pointers to other pointers.. and that data type
essentially always remains the same. it is only at the single
dimension where you need to worry about the data type.
--
int **p1;
char **p2; // p1 and p2 are both pointers to pointers.
// however, when referencing the "single array"
// within them - the component data type matters.
--
david, i know your "boss" wants you to promote PalmSource 99 as
much as possible - but please, this is not a marketing forum
for selling PalmSource.. it is a developer forum.
personally, i would love to attend PalmSource 99 - however my
full time job has some priority.. maybe a lot of developers have
the same problem..
please in future, provide answers - not marketing.
az.
--
Aaron Ardiri
Lecturer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 26 10 16 11