Richard Bram wrote:
> To write it to a record, I used to make a StandardDataPtr  pointer,
> and make it = 0. Then I used to do:
> 
> DmWrite(myRecPtr,(ULong) pointer->next,&data,1);

You're trying to duplicate the effect of the offsetof macro.  It's
easiest to just use that macro.  But the reason your code doesn't work
is you're missing a "&" operator; you should say 
  DmWrite(myRecPtr,(ULong) &pointer->next,&data,1);

--Mark

Reply via email to