Possible Duplicate:
pointer to a specific fixed address
int a, hex = 0x573285;
int * pA; // Pointer?
*pa = &a; // &a = the hexadecimal-memory location and *pa is now going to point to that place.
So I figured:
let's say it possible to write something like this for example:
(*hex) = 5; or whatever the hexadecimal number is
to change the value of the memory?
and if I had a program (I don't know one), that showed me all the memory locations my game use. if i changed the value in the program and then got back to my game or what ever, would it be changed there aswell? (if the game's running).
and is (*this) the same as (this*)
?
EDIT: This works
int a = 5, b=0x28ff1c;
int* c = &a;
cout << *(c);
But not:
int a = 5;
int * b=0x28ff1c;
int * c = &a;
cout << *(b);
nor:
int a = 5, b=0x28ff1c;
int * c = &a;
cout << *(b);
Do you see what I'm trying to do?