Hi! During our port of Gtk+, we found an 2-Byte-Character-Type (GdkWChar, just an Integer) and strings, based on them. Is there any support for these 2-byte characters in GPC? Does anyone have an idea how to port this macro to GPC? #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) It just returns an integer with the offset of a member of a structure. Example (in Pascal): --------- Type foo = Record x, y, z : Integer; End; Var result:Integer; Begin result := offsetof(foo, x); (* Result is 0 *) result := offsetof(foo, y); (* Result is 4 *) result := offsetof(foo, z) (* Result is 8 *) End. --------------- I really don't know how to implement offsetof, because its based on a type-declaration, not an instance of foo. Eike