the uint pre cast needs to change to uint32 or whatever is a 32 bit int. this then will get cast to a pointer (32 bit) Im not sure what that will be. perhaps int32_t or Int32 or Uint32 or something like it. cheers mark