I'm having a problem w/ what should be simple
pointer arithmetic ... the compiler just won't
let me do it!  I've pared down the problem, doing
things step by step until I get the error on one
operation (the math).  It's giving me an "Error : 
illegal type" on the line marked with ">>>"

        void *p = pDbRec;               // cast rec ptr to void ptr to
simplify things
        UInt o = pDbRec->hdr.bDataOffset;       // put offset into single
variable 
                                                        // to simplify
things
>>>     void *p2 = p + o;               // add offset to ptr, kablooie!


Maybe it's just too late in the day ... but what
am I doing wrong?

-- 
-Richard M. Hartman
[EMAIL PROTECTED]

186,000 mi./sec ... not just a good idea, it's the LAW!
 

Reply via email to