If anyone could shed some light on this, I'd appreciate it

I have a database record that I'm trying to read using DmQueryRecord.  I
receive a VoidHand pointer and am trying to cast it to my structure type.  
For example: 

        typedef struct
        {
                SDWord clientID;
                SDWord age;
                char name[1];
        } PackedClient;
        
        static void test()
        {
                h = DmQueryRecord(gClientsDB,index);
        
                if (h)
                {
                        PackedClient *packedClient = (PackedClient)
MemHandleLock(h);
                }
        }

When I try this casting, I get a compile error specifing such void ** to
PackedClient casting is illegal.  I've seen such casting performed many
times in O'Reilly's Palm Programming book as well as in other literature.
What am I leaving out? 

Thanks

James Colletti
Retail Branch Systems
Salomon Smith Barney
212-723-3256


Reply via email to