C
Chad Cartwright
I was coding a very basic C++ application, and all I wanted to do was
read a space of memory at 0x005CE000 over and over again. There is
another program running that is constantly writing to this address in
memory, and I wanted to make a basic loop funtion to read that address
in memory over and over until I closed the other program or my
program.
I don't know what I am doing wrong. Will C++ not let you do this?
int* var;
var = 0x005CE000
do{
cout << *var;
}while(1);
I can't remember if my syntax is correct (it's probably not)....all I
want to know is...is it possible for me to do something like this? I
just want to point a pointer to a specific location in memory. I am
not changing it...just reading it. I know there are access rights
issues if I wanted to change it, but I would assume that all memory
could just be read.
Thanks a lot.
~Chad
read a space of memory at 0x005CE000 over and over again. There is
another program running that is constantly writing to this address in
memory, and I wanted to make a basic loop funtion to read that address
in memory over and over until I closed the other program or my
program.
I don't know what I am doing wrong. Will C++ not let you do this?
int* var;
var = 0x005CE000
do{
cout << *var;
}while(1);
I can't remember if my syntax is correct (it's probably not)....all I
want to know is...is it possible for me to do something like this? I
just want to point a pointer to a specific location in memory. I am
not changing it...just reading it. I know there are access rights
issues if I wanted to change it, but I would assume that all memory
could just be read.
Thanks a lot.
~Chad