![]() |
|
#1
|
|||
|
|||
Changing a value using a pointer.Hi all
i have been having this annoying problem. I can change the value of an memory address. the problem is that the memory address changes every time the application restarts. Now i figured i would need to use a pointer. So i found a pointer that points to this address, but it has an offset. lets say the address is: "04A96990" and the offset is: "A0" and lets say this points to...:"07b96964" // this is the address i want to modify. How might one change this code to make it take advantage of the pointer and find the address and be able to modify it. CPP / C++ / C Code:
Help would be greately apreciated. Astro Last edited by admin : 19-Sep-2008 at 22:58.
Reason: Please insert your example C/C++ codes between [CPP] and [/CPP] tags
|
|||
|
#2
|
|||
|
|||
Re: Changing a value using a pointer.Did you ever get the "number of players' successfully changed in that last thread? gidforums.com/t-19030.html
Where did you get the values you stated above? The statements you make about offset don't seem right to me. Code:
If you really want to learn some C or C++ , here's is how I computed those values: CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Changing a value using a pointer.yes i figured out how to do the thing in the last post.
and i know those dont add up right, should have mentioned those. those are arbitory values, i do not have th real values with me, i wrote this in school. and my values are at my personal computer. |
|
#4
|
|||
|
|||
Re: Changing a value using a pointer.well, if you could change the value in the last post try to do the same thing for this new address.
Do the math before or within the call to ChangeMemVal() |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MACRO to detect big / little endian | ahbi82 | C Programming Language | 14 | 26-Aug-2007 11:33 |
| Query on displaying pointers | emanresu | C Programming Language | 6 | 06-Dec-2006 12:01 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 18:36 |
| Pointer values changing unexpectedly | spudtheimpaler | C Programming Language | 11 | 04-Mar-2004 17:37 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The