Posts by spwn
30 posts total, newest first.
C++ Pointer + Offset?in C++/C Programming - [quote=why06;3690693]Good lord to much confusion in this thread. Okay first of all a number is a number hex, decimal, don't matter.
That being said where did you get the offset 14 from. If you got it from Olly or CE, itC++ Pointer + Offset?in C++/C Programming - [quote=Hell_Demon;3688313]replace
ReadProcessMemory(phandle, (LPVOID)(value+14), &value, 4, 0);
WriteProcessMemory(phandle, (LPVOID)value, (LPVOID) &newvalue, 4, 0);
with
WriteProcessMemory(phandle, (LPVOID)(value+C++ Pointer + Offset?in C++/C Programming - [quote=Hell_Demon;3688187]I think what you're trying to do is add 14 to what 0x5DA520 points to:
ReadProcessMemory(phandle, (LPVOID)0x5DA520, &value, 4, 0);
ReadProcessMemory(phandle, (LPVOID)(value+14), &value, 4, 0);
C++ Pointer + Offset?in C++/C Programming - [quote=Brinuz;3687937]First of all, offset must be 0xXXX not just XX (In your case, 0x14)
Why? Because you want to add a Hex number to the Address (Hex), If you had a decimal (Which is possible), The hex of it won't be C++ Pointer + Offset?in C++/C Programming - Hey, i'm trying to learn myself some c++ and so forth. Not going into detail, anyways, i might need some help. I tried search here and came up with not much about what i was looking for.
I wrote a test code so i could
Showing the 5 most recent posts.