How to use offset codesI really need some help on how to use offset codes. Im new to c++ programing. And an example on a offset implemented in a code would be really helpfull!
Code: *reinterpret_cast<uint32_t*>(0x214821 + offset) = 5 There you go.. an offset implemented into code..
Originally Posted by Biesi Code: *reinterpret_cast<uint32_t*>(0x214821 + offset) = 5 There you go.. an offset implemented into code.. any reason for casting it?
Originally Posted by Sir Sam any reason for casting it? Dereferencing requires a pointer and in this case I am using a hard coded memory address. Pointer arithmetic is not available when not using pointers.
Originally Posted by Biesi Dereferencing requires a pointer and in this case I am using a hard coded memory address. Pointer arithmetic is not available when not using pointers. Oh right! Good call