[EMAIL PROTECTED] wrote in message <[EMAIL PROTECTED]>...
>
>
>
>I can't use offsetof() in my application.  My StructType is defined as
>typedef struct {
>UInt32  Id1;
>UInt32 Id2;
>char     Data[1];
>} StructType;
>
>I can use offsetof(StructType, Id1) to write to the first field, but how
can I
>update data in the 5th field (also have to consider there is also data in
the
>sixth field and new data might have a different size)?
>

You can't.  In a situation such as you describe it's better just to
read & write the whole record w/ paired pack() and unpack()
routines.

--
-Richard M. Hartman
[EMAIL PROTECTED]

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






-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to